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