Merge pull request #231714 from NobbZ/betterlockscreen-without-dunst

authored by Norbert Melzer and committed by GitHub 2981e3cb 6f604420

+8 -1
+8 -1
pkgs/misc/screensavers/betterlockscreen/default.nix
··· 7 7 , bc 8 8 , coreutils 9 9 , dbus 10 + , withDunst ? true 10 11 , dunst 11 12 , i3lock-color 12 13 , gawk ··· 16 17 , procps 17 18 , xorg 18 19 }: 20 + 21 + let 22 + runtimeDeps = 23 + [ bc coreutils dbus i3lock-color gawk gnugrep gnused imagemagick procps xorg.xdpyinfo xorg.xrandr xorg.xset ] 24 + ++ lib.optionals withDunst [ dunst ]; 25 + in 19 26 20 27 stdenv.mkDerivation rec { 21 28 pname = "betterlockscreen"; ··· 36 43 mkdir -p $out/bin 37 44 cp betterlockscreen $out/bin/betterlockscreen 38 45 wrapProgram "$out/bin/betterlockscreen" \ 39 - --prefix PATH : "$out/bin:${lib.makeBinPath [ bc coreutils dbus dunst i3lock-color gawk gnugrep gnused imagemagick procps xorg.xdpyinfo xorg.xrandr xorg.xset ]}" 46 + --prefix PATH : "$out/bin:${lib.makeBinPath runtimeDeps}" 40 47 41 48 runHook postInstall 42 49 '';