summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/flameshot-once.nix
blob: 7550a4678c822e991f624328e5995d9da35821e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ pkgs }:

pkgs.symlinkJoin {
  name = "flameshot-once-wrapper";
  paths = [
    (pkgs.writeDashBin "flameshot-once" ''
      export PATH=${pkgs.stdenv.lib.makeBinPath [
        pkgs.flameshot
      ]}''${PATH:+:$PATH}
      exec ${pkgs.haskellPackages.flameshot-once}/bin/flameshot-once "$@"
    '')
    pkgs.haskellPackages.flameshot-once
  ];
}