1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

Merge pull request #70998 from magnetophon/physlock

physlock: 11-dev -> v13
This commit is contained in:
WilliButz 2019-10-13 13:11:43 +02:00 committed by GitHub
commit c2905736be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,23 @@
{ stdenv, fetchFromGitHub, pam, systemd }:
stdenv.mkDerivation {
version = "11-dev";
stdenv.mkDerivation rec {
version = "v13";
pname = "physlock";
src = fetchFromGitHub {
owner = "muennich";
repo = "physlock";
rev = "31cc383afc661d44b6adb13a7a5470169753608f";
sha256 = "0j6v8li3vw9y7vwh9q9mk1n1cnwlcy3bgr1jgw5gcv2am2yi4vx3";
repo = pname;
rev = version;
sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
};
buildInputs = [ pam systemd ];
preConfigure = ''
substituteInPlace Makefile \
--replace /usr/local $out \
--replace "-m 4755 -o root -g root" ""
'';
makeFlags = "SESSION=systemd";
makeFlags = [ "PREFIX=$(out)" "SESSION=systemd" ];
meta = with stdenv.lib; {
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";