2012-08-17 15:33:37 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, x11, libjpeg, libpng12, libXmu
|
2012-12-13 10:30:18 +00:00
|
|
|
, fontconfig, freetype, pam, dbus_libs }:
|
2007-02-25 22:25:25 +00:00
|
|
|
|
2009-02-18 10:38:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-08-17 15:33:37 +00:00
|
|
|
name = "slim-1.3.4";
|
2009-02-18 10:38:51 +00:00
|
|
|
|
2007-02-25 22:25:25 +00:00
|
|
|
src = fetchurl {
|
2009-02-18 10:38:51 +00:00
|
|
|
url = "http://download.berlios.de/slim/${name}.tar.gz";
|
2012-08-17 15:33:37 +00:00
|
|
|
sha256 = "00fmrg2v41jnqhx0yc1kv97xxh5gai18n0i4as9g1fcq1i32cp0m";
|
2007-02-25 22:25:25 +00:00
|
|
|
};
|
2009-02-18 10:38:51 +00:00
|
|
|
|
2007-06-05 11:25:59 +00:00
|
|
|
patches = [
|
|
|
|
# Allow the paths of the configuration file and theme directory to
|
|
|
|
# be set at runtime.
|
|
|
|
./runtime-paths.patch
|
|
|
|
];
|
2009-02-18 10:38:51 +00:00
|
|
|
|
2012-08-17 15:33:37 +00:00
|
|
|
buildInputs =
|
|
|
|
[ cmake pkgconfig x11 libjpeg libpng12 libXmu fontconfig freetype
|
|
|
|
pam dbus_libs
|
2012-12-13 10:30:18 +00:00
|
|
|
];
|
2012-08-17 15:33:37 +00:00
|
|
|
|
|
|
|
preConfigure = "substituteInPlace CMakeLists.txt --replace /etc $out/etc";
|
2009-02-18 10:38:51 +00:00
|
|
|
|
2012-12-13 10:30:18 +00:00
|
|
|
cmakeFlags = [ "-DUSE_PAM=1" ];
|
2009-02-18 10:38:51 +00:00
|
|
|
|
2012-08-17 15:33:37 +00:00
|
|
|
NIX_CFLAGS_LINK = "-lXmu";
|
2008-01-30 19:49:42 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://slim.berlios.de;
|
2012-08-17 15:33:37 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2007-02-25 22:25:25 +00:00
|
|
|
}
|