2007-06-05 13:25:59 +02:00
|
|
|
{stdenv, fetchurl, x11, libjpeg, libpng, libXmu, freetype, pam}:
|
2007-02-25 23:25:25 +01:00
|
|
|
|
2009-02-18 11:38:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-02-14 11:15:48 +01:00
|
|
|
name = "slim-1.3.2";
|
2009-02-18 11:38:51 +01:00
|
|
|
|
2007-02-25 23:25:25 +01:00
|
|
|
src = fetchurl {
|
2009-02-18 11:38:51 +01:00
|
|
|
url = "http://download.berlios.de/slim/${name}.tar.gz";
|
2011-02-14 11:15:48 +01:00
|
|
|
sha256 = "1f42skdp5k1zrb364s3i0ps5wmx9szz9h192i2dkn9az00jh2mpi";
|
2007-02-25 23:25:25 +01:00
|
|
|
};
|
2009-02-18 11:38:51 +01:00
|
|
|
|
2007-06-05 13:25:59 +02:00
|
|
|
patches = [
|
|
|
|
# Allow the paths of the configuration file and theme directory to
|
|
|
|
# be set at runtime.
|
|
|
|
./runtime-paths.patch
|
2009-02-18 11:38:51 +01:00
|
|
|
|
|
|
|
# Fix a bug in slim's PAM support: the "resp" argument to the
|
|
|
|
# conversation function is a pointer to a pointer to an array of
|
|
|
|
# pam_response structures, not a pointer to an array of pointers to
|
|
|
|
# pam_response structures. Of course C can't tell the difference...
|
2007-06-05 13:25:59 +02:00
|
|
|
./pam.patch
|
2009-08-17 03:09:17 +02:00
|
|
|
|
|
|
|
# Don't set PAM_RHOST to "localhost", it confuses ConsoleKit
|
|
|
|
# (which assumes that a non-empty string means a remote session).
|
|
|
|
./pam2.patch
|
2007-06-05 13:25:59 +02:00
|
|
|
];
|
2009-02-18 11:38:51 +01:00
|
|
|
|
2007-06-05 13:25:59 +02:00
|
|
|
buildInputs = [x11 libjpeg libpng libXmu freetype pam];
|
2009-02-18 11:38:51 +01:00
|
|
|
|
2007-02-25 23:25:25 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2";
|
2009-02-18 11:38:51 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
2007-06-05 13:25:59 +02:00
|
|
|
substituteInPlace Makefile --replace /usr /no-such-path
|
2009-02-18 11:38:51 +01:00
|
|
|
makeFlagsArray=(CC=gcc CXX=g++ PREFIX=$out MANDIR=$out/share/man CFGDIR=$out/etc USE_PAM=1)
|
|
|
|
'';
|
2008-01-30 20:49:42 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://slim.berlios.de;
|
|
|
|
};
|
2007-02-25 23:25:25 +01:00
|
|
|
}
|