3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/display-managers/slim/default.nix

34 lines
812 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, pkgconfig, x11, libjpeg, libpng, libXmu
, fontconfig, freetype, pam, dbus_libs }:
stdenv.mkDerivation rec {
2012-08-17 16:33:37 +01:00
name = "slim-1.3.4";
src = fetchurl {
url = "http://download.berlios.de/slim/${name}.tar.gz";
2012-08-17 16:33:37 +01:00
sha256 = "00fmrg2v41jnqhx0yc1kv97xxh5gai18n0i4as9g1fcq1i32cp0m";
};
patches = [
# Allow the paths of the configuration file and theme directory to
# be set at runtime.
./runtime-paths.patch
];
2012-08-17 16:33:37 +01:00
buildInputs =
[ cmake pkgconfig x11 libjpeg libpng libXmu fontconfig freetype
2012-08-17 16:33:37 +01:00
pam dbus_libs
];
2012-08-17 16:33:37 +01:00
preConfigure = "substituteInPlace CMakeLists.txt --replace /etc $out/etc";
cmakeFlags = [ "-DUSE_PAM=1" ];
2012-08-17 16:33:37 +01:00
NIX_CFLAGS_LINK = "-lXmu";
meta = {
homepage = http://slim.berlios.de;
2012-08-17 16:33:37 +01:00
platforms = stdenv.lib.platforms.linux;
};
}