From 0bee7429c2cb8bc022e1e08c3cd433329900517e Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 8 Mar 2015 20:10:21 +0000 Subject: [PATCH] physlock: add version git-20150126 --- pkgs/misc/screensavers/physlock/default.nix | 24 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/misc/screensavers/physlock/default.nix diff --git a/pkgs/misc/screensavers/physlock/default.nix b/pkgs/misc/screensavers/physlock/default.nix new file mode 100644 index 000000000000..683b70120580 --- /dev/null +++ b/pkgs/misc/screensavers/physlock/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + version = "git-20150126"; + name = "physlock-${version}"; + src = fetchFromGitHub { + owner = "muennich"; + repo = "physlock"; + rev = "b64dccc8c22710f8bf01eb5419590cdb0e65cabb"; + sha256 = "1dapkwj3y6bb4j8q4glms7zsqm7drr37nrnr30sbahwq67rnvzcc"; + }; + + preConfigure = '' + substituteInPlace Makefile \ + --replace /usr/local $out \ + --replace "-m 4755 -o root -g root" "" + ''; + + meta = with stdenv.lib; { + description = "A secure suspend/hibernate-friendly alternative to `vlock -an` without PAM support"; + license = licenses.gpl2; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eb83bcc8996d..ebf75a6b895d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13703,6 +13703,8 @@ let phabricator = callPackage ../misc/phabricator { }; + physlock = callPackage ../misc/screensavers/physlock { }; + pjsip = callPackage ../applications/networking/pjsip { }; polytable = callPackage ../tools/typesetting/tex/polytable { };