physlock: 0.5 -> 11-dev

Update physlock to a more current version which supports PAM and
systemd-logind.  Amongst others, this should work now with the slim
login manager without any additional configuration, because it does
not rely on the utmp mechanism anymore.
This commit is contained in:
timor 2017-09-07 18:47:37 +02:00
parent e960eb0bf5
commit ae87a30a83
2 changed files with 11 additions and 5 deletions

View File

@ -99,6 +99,8 @@ in
''; '';
}; };
security.pam.services.physlock = {};
}; };
} }

View File

@ -1,23 +1,27 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, pam, systemd }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.5"; version = "11-dev";
name = "physlock-v${version}"; name = "physlock-v${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "muennich"; owner = "muennich";
repo = "physlock"; repo = "physlock";
rev = "v${version}"; rev = "31cc383afc661d44b6adb13a7a5470169753608f";
sha256 = "102kdixrf7xxsxr69lbz73i1ss7959716cmdf8d5kbnhmk6argv7"; sha256 = "0j6v8li3vw9y7vwh9q9mk1n1cnwlcy3bgr1jgw5gcv2am2yi4vx3";
}; };
buildInputs = [ pam systemd ];
preConfigure = '' preConfigure = ''
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace /usr/local $out \ --replace /usr/local $out \
--replace "-m 4755 -o root -g root" "" --replace "-m 4755 -o root -g root" ""
''; '';
makeFlags = "SESSION=systemd";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A secure suspend/hibernate-friendly alternative to `vlock -an` without PAM support"; description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
}; };