nixpkgs/pkgs/misc/screensavers/physlock/default.nix

29 lines
715 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pam, systemd }:
2015-03-08 20:10:21 +00:00
stdenv.mkDerivation rec {
version = "11-dev";
2016-12-06 20:31:10 +00:00
name = "physlock-v${version}";
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;
};
}