diff options
| author | tv <tv@krebsco.de> | 2026-12-02 02:18:54 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-02 02:18:54 +0000 |
| commit | 27d42582f070ae4880895c1d48caffaf822c4c50 (patch) | |
| tree | add4ad6834ef9f7b8721b35809fd6f0f2749c726 /pkgs/simple/flameshot-once/default.nix | |
| parent | b8a22302b4ee51dbf339792ad85d2186eaa6fa02 (diff) | |
flameshot-once: move from tv/5pkgs to pkgs
Where the rest of tv/5pkgs went.
Diffstat (limited to 'pkgs/simple/flameshot-once/default.nix')
| -rw-r--r-- | pkgs/simple/flameshot-once/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/simple/flameshot-once/default.nix b/pkgs/simple/flameshot-once/default.nix new file mode 100644 index 00000000..0524c2cf --- /dev/null +++ b/pkgs/simple/flameshot-once/default.nix @@ -0,0 +1,28 @@ +{ pkgs, stockholm, ... }@args: +with stockholm.lib; + +let + # config cannot be declared in the input attribute set because that would + # cause callPackage to inject the wrong config. Instead, get it from ... + # via args. + config = args.config or {}; +in + + pkgs.symlinkJoin { + name = "flameshot-once-wrapper"; + paths = [ + (pkgs.writeDashBin "flameshot-once" '' + export PATH=${makeBinPath [ + pkgs.flameshot + pkgs.qt5.qtbase + pkgs.xclip + pkgs.xwaitforwindow + ]} + ${optionalString (config != null) /* sh */ '' + . ${import ./profile.nix { inherit config pkgs; }} + ''} + exec ${pkgs.haskellPackages.flameshot-once}/bin/flameshot-once "$@" + '') + pkgs.haskellPackages.flameshot-once + ]; + } |
