summary refs log tree commit diff
path: root/pkgs/desktops/kde-3/kdelibs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/kde-3/kdelibs/default.nix')
-rw-r--r--pkgs/desktops/kde-3/kdelibs/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/desktops/kde-3/kdelibs/default.nix b/pkgs/desktops/kde-3/kdelibs/default.nix
new file mode 100644
index 0000000000000..86a85ab042bbb
--- /dev/null
+++ b/pkgs/desktops/kde-3/kdelibs/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, fetchurl, xlibs, zlib, perl, qt, openssl, pcre
+, pkgconfig, libjpeg, libpng, libtiff, libxml2, libxslt, libtool, expat
+, freetype, bzip2, cups, attr, acl
+}:
+
+let version = "3.5.10"; in
+
+stdenv.mkDerivation {
+  name = "kdelibs-${version}";
+  
+  src = fetchurl {
+    url = "mirror://kde/stable/${version}/src/kdelibs-${version}.tar.bz2";
+    sha256 = "0wjw51r96h6rngbsrzndw890xggzvrakydsbaldlrvbh3jq9qzk1";
+  };
+
+  passthru = {inherit openssl libjpeg qt; inherit (xlibs) libX11;};
+  
+  buildInputs = [
+    zlib perl qt openssl pcre pkgconfig libjpeg libpng libtiff libxml2
+    libxslt expat libtool freetype bzip2 cups
+    xlibs.libX11 xlibs.libXt xlibs.libXext xlibs.libXrender xlibs.libXft
+  ];
+
+  propagatedBuildInputs = [attr acl];
+
+  # 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=${xlibs.libX11}/include
+    --x-libraries=${xlibs.libX11}/lib
+  '';
+}