Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
718 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
pam,
systemd,
}:
stdenv.mkDerivation rec {
version = "13";
pname = "physlock";
src = fetchFromGitHub {
owner = "muennich";
repo = "physlock";
rev = "v${version}";
sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
};
buildInputs = [
pam
systemd
];
preConfigure = ''
substituteInPlace Makefile \
--replace "-m 4755 -o root -g root" ""
'';
makeFlags = [
"PREFIX=$(out)"
"SESSION=systemd"
];
meta = with lib; {
description = "Secure suspend/hibernate-friendly alternative to `vlock -an`";
mainProgram = "physlock";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}