Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
1.4 KiB
Nix

{
fetchFromGitHub,
lib,
makeWrapper,
stdenv,
# Dependencies (@see https://github.com/pavanjadhaw/betterlockscreen/blob/master/shell.nix)
bc,
coreutils,
dbus,
withDunst ? true,
dunst,
i3lock-color,
gawk,
gnugrep,
gnused,
imagemagick,
procps,
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.4.0";
src = fetchFromGitHub {
owner = "betterlockscreen";
repo = "betterlockscreen";
rev = "v${version}";
sha256 = "sha256-59Ct7XIfZqU3yaW9FO7UV8SSMLdcZMPRc7WJangxFPo=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp betterlockscreen $out/bin/betterlockscreen
wrapProgram "$out/bin/betterlockscreen" \
--prefix PATH : "$out/bin:${lib.makeBinPath runtimeDeps}"
runHook postInstall
'';
meta = with lib; {
description = "Fast and sweet looking lockscreen for linux systems with effects";
homepage = "https://github.com/betterlockscreen/betterlockscreen";
mainProgram = "betterlockscreen";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [
eyjhb
sebtm
];
};
}