From 6cb1d1aaaf02a72329bedf9c6960e54fea6f5c6e Mon Sep 17 00:00:00 2001 From: Michael Alyn Miller Date: Sun, 1 Feb 2015 10:07:01 -0800 Subject: [PATCH] Add xss-lock --- pkgs/misc/screensavers/xss-lock/default.nix | 26 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/misc/screensavers/xss-lock/default.nix diff --git a/pkgs/misc/screensavers/xss-lock/default.nix b/pkgs/misc/screensavers/xss-lock/default.nix new file mode 100644 index 00000000000..82fa7143122 --- /dev/null +++ b/pkgs/misc/screensavers/xss-lock/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchgit, cmake, docutils, pkgconfig, glib, libpthreadstubs +, libXau, libXdmcp, xcbutil }: + +stdenv.mkDerivation { + name = "xss-lock-git"; + + src = fetchgit { + url = https://bitbucket.org/raymonad/xss-lock.git; + rev = "d75612f1d1eea64b5c43806eea88059340a08ca9"; + sha256 = "4d57bcfd45287b5b068f45eeceb9e43d975806a038a4c586b141da5d99b3e48b"; + }; + + buildInputs = [ cmake pkgconfig docutils glib libpthreadstubs libXau + libXdmcp xcbutil ]; + + cmakeFlags = [ + "-DCMAKE_BUILD_TYPE=Release" + ]; + + meta = with stdenv.lib; { + description = "Use external locker (such as i3lock) as X screen saver"; + license = licenses.mit; + maintainers = with maintainers; [ malyn ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0051c52269e..0ea624cc1e9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11834,6 +11834,8 @@ let inherit (gnome) libglade; }; + xss-lock = callPackage ../misc/screensavers/xss-lock { }; + xsynth_dssi = callPackage ../applications/audio/xsynth-dssi { }; xterm = callPackage ../applications/misc/xterm { };