2007-06-05 15:25:59 +04:00
|
|
|
{stdenv, fetchurl, x11, libjpeg, libpng, libXmu, freetype, pam}:
|
2007-02-26 01:25:25 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "slim-1.2.6";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://download.berlios.de/slim/slim-1.2.6.tar.gz;
|
|
|
|
sha256 = "0plcmm955rnv67sx67ka6dccanr4rfzwzvsj6lnr8kqdip4522jg";
|
|
|
|
};
|
2007-06-05 15:25:59 +04:00
|
|
|
patches = [
|
|
|
|
# Allow the paths of the configuration file and theme directory to
|
|
|
|
# be set at runtime.
|
|
|
|
./runtime-paths.patch
|
|
|
|
# PAM support from
|
|
|
|
# http://developer.berlios.de/patch/?func=detailpatch&patch_id=1979&group_id=2663
|
|
|
|
./pam.patch
|
|
|
|
];
|
|
|
|
buildInputs = [x11 libjpeg libpng libXmu freetype pam];
|
2007-02-26 01:25:25 +03:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2";
|
|
|
|
preBuild = "
|
2007-06-05 15:25:59 +04:00
|
|
|
substituteInPlace Makefile --replace /usr /no-such-path
|
2007-02-26 01:25:25 +03:00
|
|
|
makeFlagsArray=(CC=gcc CXX=g++ PREFIX=$out MANDIR=$out/share/man CFGDIR=$out/etc)
|
|
|
|
";
|
2008-01-30 22:49:42 +03:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://slim.berlios.de;
|
|
|
|
};
|
2007-02-26 01:25:25 +03:00
|
|
|
}
|