mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:28:51 +00:00
fc5eebdf8b
(https://svn.nixos.org/repos/nix/nixpkgs/branches/stdenv-updates -r10966:12061). svn path=/nixpkgs/trunk/; revision=12073
42 lines
1.1 KiB
Nix
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.9"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "kdelibs-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kde/stable/${version}/src/kdelibs-${version}.tar.bz2";
|
|
md5 = "55e5f00874933d1a7ba7c95e369a205e";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|