nixpkgs/pkgs/desktops/kde/kdebase/default.nix
Eelco Dolstra dca0666111 * kdelibs: build with ACL support.
* kdebase updated to 3.5.9.  Some hackery to make it compile.  Now
  built with PAM support.

svn path=/nixpkgs/trunk/; revision=12165
2008-06-19 22:20:49 +00:00

56 lines
1.7 KiB
Nix

{ stdenv, fetchurl, pkgconfig, x11, xlibs, zlib, libpng, libjpeg, perl
, qt, kdelibs, openssl, bzip2, fontconfig, pam, hal, dbus, glib
}:
# Note: the glib dependency is needed for nspluginviewer.
let version = "3.5.9"; in
stdenv.mkDerivation {
name = "kdebase-${version}";
src = fetchurl {
url = "mirror://kde/stable/${version}/src/kdebase-${version}.tar.bz2";
md5 = "c8c35389a238aa1b73e68ef5298eadf8";
};
buildInputs = [
pkgconfig x11 zlib libpng libjpeg perl qt kdelibs openssl bzip2
fontconfig pam hal dbus glib
xlibs.libXrandr xlibs.libXinerama xlibs.libXau xlibs.libXdmcp
xlibs.libXcursor xlibs.libfontenc xlibs.imake xlibs.bdftopcf
xlibs.libxkbfile xlibs.xf86miscproto xlibs.libXxf86misc
xlibs.scrnsaverproto xlibs.libXScrnSaver
xlibs.libXcomposite xlibs.libXfixes
];
configureFlags = ''
--without-arts
--with-ssl-dir=${openssl}
--with-extra-includes=${libjpeg}/include
'';
# Prevent configure from looking for pkg-config and freetype-config
# in the wrong location (it looks in /usr/bin etc. *before* looking
# in $PATH).
preConfigure = ''
substituteInPlace configure \
--replace /usr/bin /no-such-path \
--replace /usr/local/bin /no-such-path \
--replace /opt/local/bin /no-such-path
'';
# Quick hack to work around a faulty dependency in
# konqueror/keditbookmarks/Makefile.am (${includedir} should be
# ${kdelibs} or so).
preBuild = ''
ensureDir $out/include
ln -s ${kdelibs}/include/kbookmarknotifier.h $out/include/
'';
postInstall = "rm $out/include/kbookmarknotifier.h";
# Work around some inexplicable build failure starting in kdebase 3.5.9.
LDFLAGS = "-L${kdelibs}/lib";
}