3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/screensavers/physlock/default.nix

28 lines
645 B
Nix
Raw Normal View History

{ lib, 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" ];
meta = with 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;
};
}