Skip to content

Commit

Permalink
hyprshot: include hyprpicker optional dependency (NixOS#349829)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor authored Oct 24, 2024
2 parents c912fc0 + ff4392f commit d316d6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/by-name/hy/hyprshot/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
, slurp
, wl-clipboard
, libnotify
, withFreeze ? true
, hyprpicker
, makeWrapper
}:

Expand All @@ -28,9 +30,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
install -Dm755 hyprshot -t "$out/bin"
wrapProgram "$out/bin/hyprshot" \
--prefix PATH ":" ${lib.makeBinPath [
--prefix PATH ":" ${lib.makeBinPath ([
hyprland jq grim slurp wl-clipboard libnotify
]}
] ++ lib.optionals withFreeze [ hyprpicker ])}
runHook postInstall
'';
Expand Down

0 comments on commit d316d6d

Please sign in to comment.