3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/screensavers/physlock/default.nix
2019-10-11 23:22:16 +02:00

28 lines
647 B
Nix

{ stdenv, fetchFromGitHub, pam, systemd }:
stdenv.mkDerivation rec {
version = "v13";
pname = "physlock";
src = fetchFromGitHub {
owner = "muennich";
repo = pname;
rev = version;
sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
};
buildInputs = [ pam systemd ];
preConfigure = ''
substituteInPlace Makefile \
--replace "-m 4755 -o root -g root" ""
'';
makeFlags = [ "PREFIX=$(out)" "SESSION=systemd" ];
meta = with stdenv.lib; {
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
license = licenses.gpl2;
platforms = platforms.linux;
};
}