2013-10-15 14:51:41 +04:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, xorg, libjpeg, libpng
|
2012-12-13 14:30:18 +04:00
|
|
|
, fontconfig, freetype, pam, dbus_libs }:
|
2007-02-26 01:25:25 +03:00
|
|
|
|
2009-02-18 13:38:51 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2013-10-15 14:51:41 +04:00
|
|
|
name = "slim-1.3.6";
|
2009-02-18 13:38:51 +03:00
|
|
|
|
2007-02-26 01:25:25 +03:00
|
|
|
src = fetchurl {
|
2009-02-18 13:38:51 +03:00
|
|
|
url = "http://download.berlios.de/slim/${name}.tar.gz";
|
2013-10-15 14:51:41 +04:00
|
|
|
sha256 = "1pqhk22jb4aja4hkrm7rjgbgzjyh7i4zswdgf5nw862l2znzxpi1";
|
2007-02-26 01:25:25 +03:00
|
|
|
};
|
2009-02-18 13:38:51 +03:00
|
|
|
|
2013-10-15 14:51:41 +04:00
|
|
|
patches =
|
|
|
|
[ # Allow the paths of the configuration file and theme directory to
|
|
|
|
# be set at runtime.
|
|
|
|
./runtime-paths.patch
|
2012-12-13 14:30:18 +04:00
|
|
|
];
|
2012-08-17 19:33:37 +04:00
|
|
|
|
2013-10-15 14:51:41 +04:00
|
|
|
preConfigure = "substituteInPlace CMakeLists.txt --replace /etc $out/etc --replace /lib $out/lib";
|
2009-02-18 13:38:51 +03:00
|
|
|
|
2012-12-13 14:30:18 +04:00
|
|
|
cmakeFlags = [ "-DUSE_PAM=1" ];
|
2009-02-18 13:38:51 +03:00
|
|
|
|
2013-10-15 14:51:41 +04:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ cmake pkgconfig libjpeg libpng fontconfig freetype
|
|
|
|
pam dbus_libs
|
|
|
|
xorg.libX11 xorg.libXext xorg.libXrandr xorg.libXrender xorg.libXmu xorg.libXft
|
|
|
|
];
|
|
|
|
|
2012-08-17 19:33:37 +04:00
|
|
|
NIX_CFLAGS_LINK = "-lXmu";
|
2008-01-30 22:49:42 +03:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://slim.berlios.de;
|
2012-08-17 19:33:37 +04:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-01-30 22:49:42 +03:00
|
|
|
};
|
2007-02-26 01:25:25 +03:00
|
|
|
}
|