2012-01-27 10:03:32 +00:00
|
|
|
{ stdenv, fetchurl, kdelibs, gettext, release, stable }:
|
2012-01-06 21:50:10 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
inherit (stdenv.lib) attrByPath singleton;
|
|
|
|
|
|
|
|
kdeL10nDerivation =
|
|
|
|
{ lang, saneName, sha256 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kde-l10n-${saneName}-${release}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-03-08 06:53:44 +00:00
|
|
|
url = "mirror://kde/${if stable then "" else "un"}stable/${release}/src/kde-l10n/kde-l10n-${lang}-${release}.tar.xz";
|
|
|
|
name = "${name}.tar.xz";
|
2012-01-06 21:50:10 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gettext kdelibs ];
|
|
|
|
|
|
|
|
cmakeFlags = "-Wno-dev";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "KDE translation for ${lang}";
|
|
|
|
license = "GPL";
|
|
|
|
inherit (kdelibs.meta) maintainers platforms homepage;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
kdeL10nRelease =
|
|
|
|
builtins.listToAttrs (
|
|
|
|
map ({lang, saneName, sha256}:
|
|
|
|
{
|
|
|
|
name = saneName;
|
|
|
|
value = kdeL10nDerivation { inherit lang saneName sha256; };
|
|
|
|
}
|
|
|
|
) (import (./manifest + "-${release}.nix"))
|
|
|
|
);
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit kdeL10nDerivation;
|
|
|
|
recurseForDerivations = true;
|
|
|
|
} // kdeL10nRelease
|