From 100b902bd5237a3d9cb1b0787196987ed90c3c4e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 7 Jul 2008 11:54:25 +0000 Subject: [PATCH] Added xautolock 2.1. Xautolock can be used to fire up a screen saver like xautolock after a certain period of inactivity. The tool probably doesn't belong into misc/screensavers, but I had no better idea. svn path=/nixpkgs/trunk/; revision=12305 --- pkgs/misc/screensavers/xautolock/default.nix | 16 ++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/misc/screensavers/xautolock/default.nix diff --git a/pkgs/misc/screensavers/xautolock/default.nix b/pkgs/misc/screensavers/xautolock/default.nix new file mode 100644 index 000000000000..6eece8873539 --- /dev/null +++ b/pkgs/misc/screensavers/xautolock/default.nix @@ -0,0 +1,16 @@ +{stdenv, fetchurl, x11, imake, libXScrnSaver, scrnsaverproto}: + +stdenv.mkDerivation rec +{ + name = "xautolock-2.1"; + src = fetchurl + { + url = "http://www.ibiblio.org.org/pub/Linux/X11/screensavers/${name}.tgz"; + sha256 = "1ylc6589ck88jmp8bxccs0xay1nyrnlw6cajzihk5m0pkfwwk92b"; + }; + + makeFlags="BINDIR=$$out/bin MANPATH=$$out/man"; + preBuild = "xmkmf"; + installTargets = "install install.man"; + buildInputs = [x11 imake libXScrnSaver scrnsaverproto]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b12ac7fc2392..af4cc4d87749 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3438,6 +3438,12 @@ let pkgs = rec { inherit (xlibs) libXv libXinerama; }; + xautolock = import ../misc/screensavers/xautolock { + inherit fetchurl stdenv x11; + inherit (xorg) imake; + inherit (xlibs) libXScrnSaver scrnsaverproto; + }; + xlibsWrapper = import ../development/libraries/xlibs-wrapper { inherit stdenv; packages = [