summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-09-12 08:56:52 +0100
committerGitHub <noreply@github.com>2017-09-12 08:56:52 +0100
commit26619935d12dbaaae6c8f8ee760f760f0ee7afa0 (patch)
treec90464fdc1ab1d6a12051fc372035783eb0c224f /pkgs/misc
parent3b98386f2928fe93d4a343db99a3d763d92e6352 (diff)
parentae87a30a8343053f3e4b5217dab222f2a1e4a0b9 (diff)
downloadnixlib-26619935d12dbaaae6c8f8ee760f760f0ee7afa0.tar
nixlib-26619935d12dbaaae6c8f8ee760f760f0ee7afa0.tar.gz
nixlib-26619935d12dbaaae6c8f8ee760f760f0ee7afa0.tar.bz2
nixlib-26619935d12dbaaae6c8f8ee760f760f0ee7afa0.tar.lz
nixlib-26619935d12dbaaae6c8f8ee760f760f0ee7afa0.tar.xz
nixlib-26619935d12dbaaae6c8f8ee760f760f0ee7afa0.tar.zst
nixlib-26619935d12dbaaae6c8f8ee760f760f0ee7afa0.zip
Merge pull request #29083 from timor/physlock-11-dev
physlock: 0.5 -> 11-dev
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/screensavers/physlock/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/misc/screensavers/physlock/default.nix b/pkgs/misc/screensavers/physlock/default.nix
index e580c9efea82..14c2e178e923 100644
--- a/pkgs/misc/screensavers/physlock/default.nix
+++ b/pkgs/misc/screensavers/physlock/default.nix
@@ -1,23 +1,27 @@
-{ stdenv, fetchFromGitHub }:
+{ stdenv, fetchFromGitHub, pam, systemd }:
 
 stdenv.mkDerivation rec {
-  version = "0.5";
+  version = "11-dev";
   name = "physlock-v${version}";
   src = fetchFromGitHub {
     owner = "muennich";
     repo = "physlock";
-    rev = "v${version}";
-    sha256 = "102kdixrf7xxsxr69lbz73i1ss7959716cmdf8d5kbnhmk6argv7";
+    rev = "31cc383afc661d44b6adb13a7a5470169753608f";
+    sha256 = "0j6v8li3vw9y7vwh9q9mk1n1cnwlcy3bgr1jgw5gcv2am2yi4vx3";
   };
 
+  buildInputs = [ pam systemd ];
+
   preConfigure = ''
     substituteInPlace Makefile \
       --replace /usr/local $out \
       --replace "-m 4755 -o root -g root" ""
   '';
 
+  makeFlags = "SESSION=systemd";
+
   meta = with stdenv.lib; {
-    description = "A secure suspend/hibernate-friendly alternative to `vlock -an` without PAM support";
+    description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
     license = licenses.gpl2;
     platforms = platforms.linux;
   };