2013-10-15 11:51:41 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, xorg, libjpeg, libpng
|
2015-08-21 01:12:41 +01:00
|
|
|
, fontconfig, freetype, pam, dbus_libs, makeWrapper }:
|
2007-02-25 22:25:25 +00:00
|
|
|
|
2009-02-18 10:38:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-10-15 11:51:41 +01:00
|
|
|
name = "slim-1.3.6";
|
2009-02-18 10:38:51 +00:00
|
|
|
|
2007-02-25 22:25:25 +00:00
|
|
|
src = fetchurl {
|
2014-05-18 12:25:43 +01:00
|
|
|
url = "mirror://sourceforge/slim.berlios/${name}.tar.gz";
|
2013-10-15 11:51:41 +01:00
|
|
|
sha256 = "1pqhk22jb4aja4hkrm7rjgbgzjyh7i4zswdgf5nw862l2znzxpi1";
|
2007-02-25 22:25:25 +00:00
|
|
|
};
|
2009-02-18 10:38:51 +00:00
|
|
|
|
2013-10-15 11:51:41 +01:00
|
|
|
patches =
|
|
|
|
[ # Allow the paths of the configuration file and theme directory to
|
|
|
|
# be set at runtime.
|
|
|
|
./runtime-paths.patch
|
2013-10-15 12:15:33 +01:00
|
|
|
|
|
|
|
# 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
|
2016-01-30 09:37:39 +00:00
|
|
|
|
|
|
|
# Ensure that sessions appear in sort order, rather than in
|
|
|
|
# directory order.
|
|
|
|
./sort-sessions.patch
|
2012-12-13 10:30:18 +00:00
|
|
|
];
|
2012-08-17 16:33:37 +01:00
|
|
|
|
2014-03-30 18:32:10 +01:00
|
|
|
preConfigure = "substituteInPlace CMakeLists.txt --replace /lib $out/lib";
|
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
|
|
|
|
2016-04-16 17:52:29 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${freetype.dev}/include/freetype -std=c++11";
|
2014-06-09 18:47:31 +01:00
|
|
|
|
2013-10-15 11:51:41 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ cmake pkgconfig libjpeg libpng fontconfig freetype
|
2016-04-15 20:37:12 +01:00
|
|
|
pam dbus_libs
|
2014-02-05 12:44:59 +00:00
|
|
|
xorg.libX11 xorg.libXext xorg.libXrandr xorg.libXrender xorg.libXmu xorg.libXft makeWrapper
|
2013-10-15 11:51:41 +01:00
|
|
|
];
|
|
|
|
|
2012-08-17 16:33:37 +01:00
|
|
|
NIX_CFLAGS_LINK = "-lXmu";
|
2008-01-30 19:49:42 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-05-18 12:25:43 +01:00
|
|
|
homepage = http://sourceforge.net/projects/slim.berlios/; # berlios shut down; I found no replacement yet
|
2012-08-17 16:33:37 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2007-02-25 22:25:25 +00:00
|
|
|
}
|