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

29 lines
714 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pam, systemd }:
2015-03-08 21:10:21 +01:00
stdenv.mkDerivation rec {
version = "11-dev";
2018-05-28 14:59:57 +02:00
name = "physlock-${version}";
2015-03-08 21:10:21 +01:00
src = fetchFromGitHub {
2016-12-06 21:31:10 +01:00
owner = "muennich";
repo = "physlock";
rev = "31cc383afc661d44b6adb13a7a5470169753608f";
sha256 = "0j6v8li3vw9y7vwh9q9mk1n1cnwlcy3bgr1jgw5gcv2am2yi4vx3";
2015-03-08 21:10:21 +01:00
};
buildInputs = [ pam systemd ];
2015-03-08 21:10:21 +01:00
preConfigure = ''
substituteInPlace Makefile \
--replace /usr/local $out \
--replace "-m 4755 -o root -g root" ""
'';
makeFlags = "SESSION=systemd";
2015-03-08 21:10:21 +01:00
meta = with stdenv.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;
};
}