2017-09-07 18:47:37 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pam, systemd }:
|
2015-03-08 21:10:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-07 18:47:37 +02:00
|
|
|
version = "11-dev";
|
2018-05-28 14:59:57 +02:00
|
|
|
name = "physlock-${version}";
|
2015-03-08 21:10:21 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-12-06 21:31:10 +01:00
|
|
|
owner = "muennich";
|
|
|
|
repo = "physlock";
|
2017-09-07 18:47:37 +02:00
|
|
|
rev = "31cc383afc661d44b6adb13a7a5470169753608f";
|
|
|
|
sha256 = "0j6v8li3vw9y7vwh9q9mk1n1cnwlcy3bgr1jgw5gcv2am2yi4vx3";
|
2015-03-08 21:10:21 +01:00
|
|
|
};
|
|
|
|
|
2017-09-07 18:47:37 +02:00
|
|
|
buildInputs = [ pam systemd ];
|
|
|
|
|
2015-03-08 21:10:21 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /usr/local $out \
|
|
|
|
--replace "-m 4755 -o root -g root" ""
|
|
|
|
'';
|
|
|
|
|
2017-09-07 18:47:37 +02:00
|
|
|
makeFlags = "SESSION=systemd";
|
|
|
|
|
2015-03-08 21:10:21 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-09-07 18:47:37 +02:00
|
|
|
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
|
2015-03-08 21:10:21 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|