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

25 lines
621 B
Nix
Raw Normal View History

2015-03-08 20:10:21 +00:00
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
2016-12-06 20:31:10 +00:00
version = "0.5";
name = "physlock-v${version}";
2015-03-08 20:10:21 +00:00
src = fetchFromGitHub {
2016-12-06 20:31:10 +00:00
owner = "muennich";
repo = "physlock";
rev = "v${version}";
sha256 = "102kdixrf7xxsxr69lbz73i1ss7959716cmdf8d5kbnhmk6argv7";
2015-03-08 20:10:21 +00: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;
};
}