From b8a22302b4ee51dbf339792ad85d2186eaa6fa02 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Dec 2026 02:18:54 +0000 Subject: 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. --- tv/5pkgs/simple/flameshot-once/default.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tv/5pkgs/simple/flameshot-once/default.nix (limited to 'tv/5pkgs/simple/flameshot-once/default.nix') 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 + ]; + } -- cgit v1.3.1 [cgit] Unable to lock slot /tmp/cgit/e9000000.lock: Permission denied (13)