depot/third_party/nixpkgs/pkgs/misc/screensavers/physlock/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

27 lines
650 B
Nix

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