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

28 lines
645 B
Nix
Raw Normal View History

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