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 | 10a7b42e823ad78b39ce20f400566a8c329296d0 (patch) | |
| tree | 198c84bdcef18e9818941fc638395901b29b4530 /pkgs/simple/flameshot-once/default.nix | |
| parent | 59a3a6510ea55234dd53f9a70941164a38e0bbba (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 + ]; + } |
