diff options
Diffstat (limited to 'pkgs/misc/screensavers/betterlockscreen/default.nix')
-rw-r--r-- | pkgs/misc/screensavers/betterlockscreen/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/misc/screensavers/betterlockscreen/default.nix b/pkgs/misc/screensavers/betterlockscreen/default.nix index f53cb5a97760..8c7740ae7bb5 100644 --- a/pkgs/misc/screensavers/betterlockscreen/default.nix +++ b/pkgs/misc/screensavers/betterlockscreen/default.nix @@ -7,6 +7,7 @@ , bc , coreutils , dbus +, withDunst ? true , dunst , i3lock-color , gawk @@ -17,6 +18,12 @@ , xorg }: +let + runtimeDeps = + [ bc coreutils dbus i3lock-color gawk gnugrep gnused imagemagick procps xorg.xdpyinfo xorg.xrandr xorg.xset ] + ++ lib.optionals withDunst [ dunst ]; +in + stdenv.mkDerivation rec { pname = "betterlockscreen"; version = "4.0.4"; @@ -36,7 +43,7 @@ stdenv.mkDerivation rec { mkdir -p $out/bin cp betterlockscreen $out/bin/betterlockscreen wrapProgram "$out/bin/betterlockscreen" \ - --prefix PATH : "$out/bin:${lib.makeBinPath [ bc coreutils dbus dunst i3lock-color gawk gnugrep gnused imagemagick procps xorg.xdpyinfo xorg.xrandr xorg.xset ]}" + --prefix PATH : "$out/bin:${lib.makeBinPath runtimeDeps}" runHook postInstall ''; |