Add XLockmore, a screen locker for X11.
Currently, password authentication doesn't work. svn path=/nixpkgs/trunk/; revision=10701
This commit is contained in:
parent
8022e84568
commit
cc3ab45e92
30
pkgs/misc/screensavers/xlockmore/default.nix
Normal file
30
pkgs/misc/screensavers/xlockmore/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{stdenv, fetchurl, pam, x11, freetype}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
# FIXME: Password authentication doesn't work!
|
||||
|
||||
name = "xlockmore-5.24";
|
||||
src = fetchurl {
|
||||
url = http://www.tux.org/~bagleyd/xlock/xlockmore-5.24.tar.bz2;
|
||||
sha256 = "dbee7bbe35c08afcbe419603fae60aee7898bbd85a3175dc788f02ddbb9f5a39";
|
||||
};
|
||||
|
||||
# Optionally, it can use GTK+ as well.
|
||||
buildInputs = [pam x11 freetype];
|
||||
|
||||
# The `xlock' program needs to be linked against Glibc's
|
||||
# `libgcrypt', which contains `crypt(3)'.
|
||||
patches = [ ./makefile-libcrypt.patch ];
|
||||
|
||||
# Don't try to install `xlock' setuid. Instead, the user should add
|
||||
# it to `security.extraSetuidPrograms'.
|
||||
configureFlags =
|
||||
"--disable-setuid " + "--enable-pam " +
|
||||
"--enable-appdefaultdir=$out/lib/X11/app-defaults";
|
||||
|
||||
meta = {
|
||||
description = "Xlockmore, a screen locker for the X Window System.";
|
||||
homepage = http://www.tux.org/~bagleyd/xlockmore.html;
|
||||
license = "GPL";
|
||||
};
|
||||
}
|
11
pkgs/misc/screensavers/xlockmore/makefile-libcrypt.patch
Normal file
11
pkgs/misc/screensavers/xlockmore/makefile-libcrypt.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- xlockmore-5.24/modes/Makefile.in 2007-01-22 23:02:07.000000000 +0100
|
||||
+++ xlockmore-5.24/modes/Makefile.in 2008-02-11 17:24:34.000000000 +0100
|
||||
@@ -326,7 +326,7 @@ CFLAGS = @CFLAGS@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
#CFLAGS = -O
|
||||
#CFLAGS = -g
|
||||
-XLOCKLDFLAGS = @XLOCKLDFLAGS@ $(CHECKLDFLAG)
|
||||
+XLOCKLDFLAGS = @XLOCKLDFLAGS@ $(CHECKLDFLAG) -lcrypt
|
||||
XLIBS = @XLIBS@
|
||||
XLOCKLIBS = $(MODULELIB) @XLOCKLIBS@
|
||||
|
|
@ -5777,6 +5777,10 @@ rec {
|
|||
inherit fetchurl stdenv x11 mesa;
|
||||
};
|
||||
|
||||
xlockmore = import ../misc/screensavers/xlockmore {
|
||||
inherit fetchurl stdenv pam x11 freetype;
|
||||
};
|
||||
|
||||
saneBackends = import ../misc/sane-backends {
|
||||
inherit fetchurl stdenv libusb;
|
||||
gt68xxFirmware =
|
||||
|
|
Loading…
Reference in a new issue