nixpkgs/pkgs/applications/display-managers/slim/default.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

2013-10-15 12:51:41 +02:00
{ stdenv, fetchurl, cmake, pkgconfig, xorg, libjpeg, libpng
, fontconfig, freetype, pam, dbus_libs, makeWrapper }:
stdenv.mkDerivation rec {
2013-10-15 12:51:41 +02:00
name = "slim-1.3.6";
src = fetchurl {
url = "mirror://sourceforge/slim.berlios/${name}.tar.gz";
2013-10-15 12:51:41 +02:00
sha256 = "1pqhk22jb4aja4hkrm7rjgbgzjyh7i4zswdgf5nw862l2znzxpi1";
};
2013-10-15 12:51:41 +02:00
patches =
[ # Allow the paths of the configuration file and theme directory to
# be set at runtime.
./runtime-paths.patch
# Exit after the user's session has finished. This works around
# slim's broken PAM session handling (see
# http://developer.berlios.de/bugs/?func=detailbug&bug_id=19102&group_id=2663).
./run-once.patch
# Ensure that sessions appear in sort order, rather than in
# directory order.
./sort-sessions.patch
];
2012-08-17 17:33:37 +02:00
preConfigure = "substituteInPlace CMakeLists.txt --replace /lib $out/lib";
cmakeFlags = [ "-DUSE_PAM=1" ];
NIX_CFLAGS_COMPILE = "-I${freetype.dev}/include/freetype -std=c++11";
2013-10-15 12:51:41 +02: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 makeWrapper
2013-10-15 12:51:41 +02:00
];
2012-08-17 17:33:37 +02:00
NIX_CFLAGS_LINK = "-lXmu";
meta = {
homepage = http://sourceforge.net/projects/slim.berlios/; # berlios shut down; I found no replacement yet
2012-08-17 17:33:37 +02:00
platforms = stdenv.lib.platforms.linux;
};
}