3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/screensavers/physlock/default.nix

29 lines
700 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pam, systemd }:
2015-03-08 20:10:21 +00:00
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
version = "11-dev";
pname = "physlock";
2015-03-08 20:10:21 +00:00
src = fetchFromGitHub {
2016-12-06 20:31:10 +00:00
owner = "muennich";
repo = "physlock";
rev = "31cc383afc661d44b6adb13a7a5470169753608f";
sha256 = "0j6v8li3vw9y7vwh9q9mk1n1cnwlcy3bgr1jgw5gcv2am2yi4vx3";
2015-03-08 20:10:21 +00:00
};
buildInputs = [ pam systemd ];
2015-03-08 20:10:21 +00:00
preConfigure = ''
substituteInPlace Makefile \
--replace /usr/local $out \
--replace "-m 4755 -o root -g root" ""
'';
makeFlags = "SESSION=systemd";
2015-03-08 20:10:21 +00:00
meta = with stdenv.lib; {
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
2015-03-08 20:10:21 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}