summary refs log tree commit diff
path: root/pkgs/desktops/kde-4.4/libs/default.nix
blob: 7df436fbe69381aced5770e8ad1f39c7b814de87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchurl, cmake, lib, perl
, qt4, bzip2, pcre, fam, libxml2, libxslt, shared_mime_info, giflib, jasper
, xz, flex, bison, openexr, aspell, avahi, kerberos, acl, attr, shared_desktop_ontologies, libXScrnSaver
, automoc4, phonon, strigi, soprano, qca2, attica, polkit_qt
}:

stdenv.mkDerivation {
  name = "kdelibs-4.4.0";
  
  src = fetchurl {
    url = mirror://kde/stable/4.4.0/src/kdelibs-4.4.0.tar.bz2;
    sha256 = "1nf829k9mcnqf1jfsfjgb1dw6s0kh02sixxjcgmapccmmqx1p5ak";
  };
  
  includeAllQtDirs = true;

  buildInputs = [
    cmake perl qt4 stdenv.gcc.libc xz flex bison bzip2 pcre fam libxml2 libxslt
    shared_mime_info giflib jasper /*openexr*/ aspell avahi kerberos acl attr
    shared_desktop_ontologies libXScrnSaver
    automoc4 phonon strigi soprano qca2 attica polkit_qt
  ];

  CMAKE_PREFIX_PATH=shared_desktop_ontologies;

  # I don't know why cmake does not find the acl files (but finds attr files)
  cmakeFlags = [ "-DHAVE_ACL_LIBACL_H=ON" "-DHAVE_SYS_ACL_H=ON" ];
  
  meta = {
    description = "KDE libraries";
    license = "LGPL";
    homepage = http://www.kde.org;
    maintainers = [ lib.maintainers.sander ];
  };
}