Add meta to kde-4.7 'subdir' pkgs

svn path=/nixpkgs/trunk/; revision=28816
This commit is contained in:
Yury G. Kudryashov 2011-08-25 20:00:55 +00:00
parent 69a8ca2dc8
commit 5c90976c6a

View File

@ -39,13 +39,14 @@ rec {
kdeSubdirPkg = module:
{name, subdir ? name, sane ? name}:
let name_ = name; in
a@{cmakeFlags ? [], name ? name_, ...}:
a@{cmakeFlags ? [], name ? name_, meta ? {}, ...}:
stdenv.mkDerivation ({
name = "${name}-${release}";
src = kdesrc module;
cmakeFlags = ["-DDISABLE_ALL_OPTIONAL_SUBDIRECTORIES=TRUE"
"-DBUILD_doc=TRUE" "-DBUILD_${subdir}=TRUE"] ++ cmakeFlags;
} // (removeAttrs a [ "cmakeFlags" ]));
meta = defMeta // meta;
} // (removeAttrs a [ "meta" "name" "cmakeFlags" ]));
# A KDE monolithic module
kdeMonoModule = name: path: callPackage path { kde = kdeMonoPkg name; };