2011-02-02 14:54:35 +01:00
|
|
|
{ stdenv, fetchurl, cmake, kdelibs, gettext, perl, automoc4, release }:
|
2010-10-02 07:24:06 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2011-02-02 14:54:35 +01:00
|
|
|
inherit (stdenv.lib) attrByPath singleton;
|
2010-10-02 07:24:06 +02:00
|
|
|
|
2011-02-02 14:54:35 +01:00
|
|
|
kdeL10nDerivation =
|
|
|
|
{ lang, saneName, sha256 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kde-l10n-${saneName}-${release}";
|
|
|
|
|
2010-10-02 07:24:06 +02:00
|
|
|
src = fetchurl {
|
2011-02-02 14:54:35 +01:00
|
|
|
url = "mirror://kde/stable/${release}/src/kde-l10n/kde-l10n-${lang}-${release}.tar.bz2";
|
|
|
|
name = "${name}.tar.bz2";
|
2010-10-02 07:24:06 +02:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake perl gettext kdelibs automoc4 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "KDE translation for ${lang}";
|
|
|
|
license = "GPL";
|
|
|
|
inherit (kdelibs.meta) maintainers platforms homepage;
|
|
|
|
};
|
2011-02-02 14:54:35 +01:00
|
|
|
};
|
2010-10-21 00:42:48 +02:00
|
|
|
|
2011-02-02 14:54:35 +01:00
|
|
|
kdeL10nRelease =
|
2010-10-21 00:42:48 +02:00
|
|
|
builtins.listToAttrs (
|
2011-02-02 14:54:35 +01:00
|
|
|
map ({lang, saneName, sha256}:
|
2010-10-21 00:42:48 +02:00
|
|
|
{
|
2011-02-02 14:54:35 +01:00
|
|
|
name = saneName;
|
|
|
|
value = kdeL10nDerivation { inherit lang saneName sha256; };
|
2010-10-21 00:42:48 +02:00
|
|
|
}
|
|
|
|
) (import (./manifest + "-${release}.nix"))
|
|
|
|
);
|
|
|
|
|
2010-10-02 07:24:06 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit kdeL10nDerivation;
|
|
|
|
recurseForDerivations = true;
|
2011-02-02 14:54:35 +01:00
|
|
|
} // kdeL10nRelease
|