nixpkgs/pkgs/misc/screensavers/physlock/default.nix

28 lines
647 B
Nix
Raw Normal View History

{ 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";
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
};
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" ];
2015-03-08 20:10:21 +00:00
meta = with stdenv.lib; {
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
2015-03-08 20:10:21 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}