depot/third_party/nixpkgs/pkgs/misc/screensavers/physlock/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
647 B
Nix

{ stdenv, fetchFromGitHub, pam, systemd }:
stdenv.mkDerivation rec {
version = "v13";
pname = "physlock";
src = fetchFromGitHub {
owner = "muennich";
repo = pname;
rev = version;
sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
};
buildInputs = [ pam systemd ];
preConfigure = ''
substituteInPlace Makefile \
--replace "-m 4755 -o root -g root" ""
'';
makeFlags = [ "PREFIX=$(out)" "SESSION=systemd" ];
meta = with stdenv.lib; {
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
license = licenses.gpl2;
platforms = platforms.linux;
};
}