@@ -2,23 +2,20 @@
22
33stdenv.mkDerivation rec {
44
5− name = "xlockmore-5.43";
5+ name = "xlockmore-5.44";
66 src = fetchurl {
77 url = "http://www.tux.org/~bagleyd/xlock/${name}/${name}.tar.bz2";
8− sha256 = "1l36n8x51j7lwdalv6yi37cil290vzd3djjqydhsm0pnm8hiz499";
8+ sha256 = "07bxl2k84jzz2zn364jakd1sg8rlhynkb7pchb19wy785ssgwvfi";
99 };
1010
1111 # Optionally, it can use GTK+.
1212 buildInputs = [ pam x11 ];
1313
14− # The `xlock' program needs to be linked against Glibc's
15− # `libgcrypt', which contains `crypt(3)'.
16− patches = [ ./makefile-libcrypt.patch ];
17−
1814 # Don't try to install `xlock' setuid. Password authentication works
1915 # fine via PAM without super user privileges.
2016 configureFlags =
21− " --with-crypt" # TODO: set --enable-appdefaultdir to a suitable value
17+ " --with-crypt"
18+ + " --enable-appdefaultdir=$out/share/X11/app-defaults"
2219 + " --disable-setuid"
2320 + " --without-editres"
2421 + " --without-xpm"
@@ -38,9 +35,15 @@ stdenv.mkDerivation rec {
3835 + " --without-gtk"
3936 + (if pam != null then " --enable-pam --enable-bad-pam" else " --disable-pam");
4037
41− meta = {
38+ preConfigure = ''
39+ configureFlags+=" --enable-appdefaultdir=$out/share/X11/app-defaults"
40+ '';
41+
42+ meta = with stdenv.lib; {
4243 description = "Screen locker for the X Window System";
43− homepage = "http://www.tux.org/~bagleyd/xlockmore.html";
44− license = "GPL";
44+ homepage = http://www.tux.org/~bagleyd/xlockmore.html;
45+ license = licenses.gpl2;
46+ maintainers = with maintainers; [ pSub ];
47+ platforms = platforms.linux;
4548 };
4649}