Files
2026-05-03 14:00:14 +02:00

77 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,
xset,
xrandr,
xdpyinfo,
}:
let
runtimeDeps = [
bc
coreutils
dbus
i3lock-color
gawk
gnugrep
gnused
imagemagick
procps
xdpyinfo
xrandr
xset
]
++ lib.optionals withDunst [ dunst ];
in
stdenv.mkDerivation (finalAttrs: {
pname = "betterlockscreen";
version = "4.4.0";
src = fetchFromGitHub {
owner = "betterlockscreen";
repo = "betterlockscreen";
rev = "v${finalAttrs.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 = {
description = "Fast and sweet looking lockscreen for linux systems with effects";
homepage = "https://github.com/betterlockscreen/betterlockscreen";
mainProgram = "betterlockscreen";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
eyjhb
];
};
})