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