1 { lib, stdenv, fetchFromGitHub, pam, systemd }:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
10 sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
13 buildInputs = [ pam systemd ];
16 substituteInPlace Makefile \
17 --replace "-m 4755 -o root -g root" ""
20 makeFlags = [ "PREFIX=$(out)" "SESSION=systemd" ];
23 description = "Secure suspend/hibernate-friendly alternative to `vlock -an`";
24 mainProgram = "physlock";
25 license = licenses.gpl2Plus;
26 platforms = platforms.linux;