2017-09-07 17:47:37 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pam, systemd }:
|
2015-03-08 20:10:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-07 17:47:37 +01:00
|
|
|
version = "11-dev";
|
2018-05-28 13:59:57 +01:00
|
|
|
name = "physlock-${version}";
|
2015-03-08 20:10:21 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-12-06 20:31:10 +00:00
|
|
|
owner = "muennich";
|
|
|
|
repo = "physlock";
|
2017-09-07 17:47:37 +01:00
|
|
|
rev = "31cc383afc661d44b6adb13a7a5470169753608f";
|
|
|
|
sha256 = "0j6v8li3vw9y7vwh9q9mk1n1cnwlcy3bgr1jgw5gcv2am2yi4vx3";
|
2015-03-08 20:10:21 +00:00
|
|
|
};
|
|
|
|
|
2017-09-07 17:47:37 +01: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" ""
|
|
|
|
'';
|
|
|
|
|
2017-09-07 17:47:37 +01:00
|
|
|
makeFlags = "SESSION=systemd";
|
|
|
|
|
2015-03-08 20:10:21 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-09-07 17:47:37 +01:00
|
|
|
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
|
2015-03-08 20:10:21 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|