1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 18:12:46 +00:00
nixpkgs/pkgs/desktops/kde/kdelibs/default.nix
Eelco Dolstra 2f79d64089 * Purity fixes in kdelibs/kdebase: configure looks for pkg-config and
freetype-config in /usr/bin *before* looking $PATH, possibly causing
  it to fail on non-NixOS machines.

svn path=/nixpkgs/trunk/; revision=11287
2008-03-26 09:53:04 +00:00

42 lines
1.1 KiB
Nix

{ stdenv, fetchurl, libX11, libXt, libXext, zlib, perl, qt, openssl, pcre
, pkgconfig, libjpeg, libpng, libtiff, libxml2, libxslt, libtool, expat
, freetype, bzip2, cups
}:
let version = "3.5.7"; in
stdenv.mkDerivation {
name = "kdelibs-${version}";
src = fetchurl {
url = "mirror://kde/stable/${version}/src/kdelibs-${version}.tar.bz2";
md5 = "50ed644f2ec91963570fe2b155652957";
};
passthru = {inherit openssl libX11 libjpeg qt;};
buildInputs = [
libX11 libXt libXext zlib perl qt openssl pcre
pkgconfig libjpeg libpng libtiff libxml2 libxslt expat
libtool freetype bzip2 cups
];
# 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
'';
configureFlags = "
--without-arts
--with-ssl-dir=${openssl}
--with-extra-includes=${libjpeg}/include
--x-includes=${libX11}/include
--x-libraries=${libX11}/lib
";
}