Skip to content

Commit

Permalink
xlockmore: update from 5.43 to 5.44, fix appdefaultdir and meta infor…
Browse files Browse the repository at this point in the history
…mation
  • Loading branch information
pSub committed Nov 10, 2014
1 parent 7244de4 commit accb8d2
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions pkgs/misc/screensavers/xlockmore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,20 @@

stdenv.mkDerivation rec {

name = "xlockmore-5.43";
name = "xlockmore-5.44";
src = fetchurl {
url = "http://www.tux.org/~bagleyd/xlock/${name}/${name}.tar.bz2";
sha256 = "1l36n8x51j7lwdalv6yi37cil290vzd3djjqydhsm0pnm8hiz499";
sha256 = "07bxl2k84jzz2zn364jakd1sg8rlhynkb7pchb19wy785ssgwvfi";
};

# Optionally, it can use GTK+.
buildInputs = [ pam x11 ];

# 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. Password authentication works
# fine via PAM without super user privileges.
configureFlags =
" --with-crypt" # TODO: set --enable-appdefaultdir to a suitable value
" --with-crypt"
+ " --enable-appdefaultdir=$out/share/X11/app-defaults"
+ " --disable-setuid"
+ " --without-editres"
+ " --without-xpm"
Expand All @@ -38,9 +35,15 @@ stdenv.mkDerivation rec {
+ " --without-gtk"
+ (if pam != null then " --enable-pam --enable-bad-pam" else " --disable-pam");

meta = {
preConfigure = ''
configureFlags+=" --enable-appdefaultdir=$out/share/X11/app-defaults"
'';

meta = with stdenv.lib; {
description = "Screen locker for the X Window System";
homepage = "http://www.tux.org/~bagleyd/xlockmore.html";
license = "GPL";
homepage = http://www.tux.org/~bagleyd/xlockmore.html;
license = licenses.gpl2;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}

0 comments on commit accb8d2

Please sign in to comment.