2009-09-22 22:16:38 +02:00
|
|
|
{stdenv, fetchurl, pam ? null, x11, freetype}:
|
2008-02-15 11:40:20 +01:00
|
|
|
|
2009-09-22 22:16:38 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-02-15 11:40:20 +01:00
|
|
|
# FIXME: Password authentication doesn't work!
|
|
|
|
|
2009-09-22 22:16:38 +02:00
|
|
|
name = "xlockmore-5.29";
|
2008-02-15 11:40:20 +01:00
|
|
|
src = fetchurl {
|
2009-09-22 22:16:38 +02:00
|
|
|
url = "http://www.tux.org/~bagleyd/xlock/${name}/${name}.tar.bz2";
|
|
|
|
sha256 = "47700f74cdd6ada80717358fd9cbb4316a0b2350fd527cfcd1e9b018d3818db2";
|
2008-02-15 11:40:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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'.
|
2009-09-22 22:16:38 +02:00
|
|
|
configureFlags =
|
|
|
|
+ " --with-crypt" # TODO: set --enable-appdefaultdir to a suitable value
|
|
|
|
+ " --disable-setuid"
|
|
|
|
+ " --without-editres"
|
|
|
|
+ " --without-xpm"
|
|
|
|
+ " --without-gltt"
|
|
|
|
+ " --without-ttf"
|
|
|
|
+ " --without-ftgl"
|
|
|
|
+ " --without-freetype"
|
|
|
|
+ " --without-opengl"
|
|
|
|
+ " --without-mesa"
|
|
|
|
+ " --without-dtsaver"
|
|
|
|
+ " --without-ext"
|
|
|
|
+ " --without-dpms"
|
|
|
|
+ " --without-xinerama"
|
|
|
|
+ " --without-rplay"
|
|
|
|
+ " --without-nas"
|
|
|
|
+ " --without-gtk2"
|
|
|
|
+ " --without-gtk"
|
|
|
|
+ (if pam != null then " --enable-pam --enable-bad-pam" else " --disable-pam");
|
2008-02-15 11:40:20 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Xlockmore, a screen locker for the X Window System.";
|
|
|
|
homepage = http://www.tux.org/~bagleyd/xlockmore.html;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|