2012-04-06 20:56:00 +02:00
|
|
|
{ stdenv, fetchurl, pam ? null, x11 }:
|
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
|
|
|
|
2012-04-06 20:56:00 +02:00
|
|
|
name = "xlockmore-5.38";
|
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";
|
2012-04-06 20:56:00 +02:00
|
|
|
sha256 = "15x5l43zdjn881xf2m9psz9s2hvd2l8py2kzdhdh1v9m4ml20nf4";
|
2008-02-15 11:40:20 +01:00
|
|
|
};
|
|
|
|
|
2012-04-06 20:56:00 +02:00
|
|
|
# Optionally, it can use GTK+.
|
|
|
|
buildInputs = [ pam x11 ];
|
2008-02-15 11:40:20 +01:00
|
|
|
|
|
|
|
# The `xlock' program needs to be linked against Glibc's
|
|
|
|
# `libgcrypt', which contains `crypt(3)'.
|
|
|
|
patches = [ ./makefile-libcrypt.patch ];
|
|
|
|
|
2012-04-06 20:56:00 +02:00
|
|
|
# Don't try to install `xlock' setuid. Password authentication works
|
|
|
|
# fine via PAM without super user privileges.
|
2009-09-22 22:16:38 +02:00
|
|
|
configureFlags =
|
2009-09-23 13:01:14 +02:00
|
|
|
" --with-crypt" # TODO: set --enable-appdefaultdir to a suitable value
|
2009-09-22 22:16:38 +02:00
|
|
|
+ " --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.";
|
2012-04-06 20:56:00 +02:00
|
|
|
homepage = "http://www.tux.org/~bagleyd/xlockmore.html";
|
2008-02-15 11:40:20 +01:00
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|