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 | b8a22302b4ee51dbf339792ad85d2186eaa6fa02 (patch) | |
| tree | 708424829f5f1d2034755a57a9750df06b020b98 /tv/5pkgs/simple/flameshot-once/default.nix | |
| parent | b84bbcb3b1b18ed5ba4bb264d7a810552f39ff71 (diff) | |
Revert "flameshot-once: reinit with flameshot 12.1.0-pre"
This reverts commit 1d1ab286f4fda352d3e598a4b2addc3992c02e85, which
removed flameshot-once without adding the new version it announced.
Diffstat (limited to 'tv/5pkgs/simple/flameshot-once/default.nix')
| -rw-r--r-- | tv/5pkgs/simple/flameshot-once/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tv/5pkgs/simple/flameshot-once/default.nix b/tv/5pkgs/simple/flameshot-once/default.nix new file mode 100644 index 00000000..0524c2cf --- /dev/null +++ b/tv/5pkgs/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 + ]; + } |
