diff options
Diffstat (limited to 'pkgs/desktops/kde-4.6/kde-package/default.nix')
-rw-r--r-- | pkgs/desktops/kde-4.6/kde-package/default.nix | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/pkgs/desktops/kde-4.6/kde-package/default.nix b/pkgs/desktops/kde-4.6/kde-package/default.nix deleted file mode 100644 index de3cf05b70d35..0000000000000 --- a/pkgs/desktops/kde-4.6/kde-package/default.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ stdenv, fetchurl, release }: - -rec { - inherit release; - - manifest = import (./manifest + "-${release}.nix"); - - defaultArgs = { module, name ? module, ... }: - - ( - { - name = "${name}-${release}"; - - src = fetchurl { - url = "mirror://kde/" + (if manifest.stable then "" else "un") - + "stable/${release}/src/${module}-${release}.tar.bz2"; - sha256 = builtins.getAttr module manifest.packages; - }; - - meta = { - maintainers = with stdenv.lib.maintainers; [ sander urkud ]; - platforms = stdenv.lib.platforms.linux; - }; - } // (if module == name then { } else { - cmakeFlags = '' - -DDISABLE_ALL_OPTIONAL_SUBDIRECTORIES=TRUE - -DBUILD_doc=TRUE -DBUILD_${name}=TRUE''; - }) - ); - - package = a@{meta, ...}: - assert a.meta ? kde; - let - default = defaultArgs a.meta.kde; - in -# hand-written merge - stdenv.mkDerivation ( - default - // removeAttrs a [ "meta" "cmakeFlags" ] - // { - meta = default.meta // a.meta; - } - // (if default ? cmakeFlags || a ? cmakeFlags then { - cmakeFlags = - (if default ? cmakeFlags then "${default.cmakeFlags}" else "") - + (if default ? cmakeFlags && a ? cmakeFlags then " " else "") - + (if a ? cmakeFlags then a.cmakeFlags else ""); - } else { } - )); -} |