2017-09-07 17:47:37 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pam, systemd }:
|
2015-03-08 20:10:21 +00:00
|
|
|
|
2019-10-11 22:09:49 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "v13";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "physlock";
|
2015-03-08 20:10:21 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-12-06 20:31:10 +00:00
|
|
|
owner = "muennich";
|
2019-10-11 22:09:49 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
|
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 "-m 4755 -o root -g root" ""
|
|
|
|
'';
|
|
|
|
|
2019-10-11 22:09:49 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "SESSION=systemd" ];
|
2017-09-07 17:47:37 +01:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|