2015-03-08 21:10:21 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-12-06 21:31:10 +01:00
|
|
|
version = "0.5";
|
|
|
|
name = "physlock-v${version}";
|
2015-03-08 21:10:21 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-12-06 21:31:10 +01:00
|
|
|
owner = "muennich";
|
|
|
|
repo = "physlock";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "102kdixrf7xxsxr69lbz73i1ss7959716cmdf8d5kbnhmk6argv7";
|
2015-03-08 21:10:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /usr/local $out \
|
|
|
|
--replace "-m 4755 -o root -g root" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A secure suspend/hibernate-friendly alternative to `vlock -an` without PAM support";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|