2011-02-13 05:36:41 +01:00
|
|
|
{ stdenv, fetchurl, cmake, kdelibs, gettext, perl, automoc4, release }:
|
2010-12-26 16:26:01 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2011-02-13 05:36:41 +01:00
|
|
|
inherit (stdenv.lib) attrByPath singleton;
|
2010-12-26 16:26:01 +01:00
|
|
|
|
2011-02-13 05:36:41 +01:00
|
|
|
kdeL10nDerivation =
|
|
|
|
{ lang, saneName, sha256 }:
|
2010-12-26 16:26:01 +01:00
|
|
|
|
2011-02-13 05:36:41 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kde-l10n-${saneName}-${release}";
|
2010-12-26 16:26:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-02-13 05:36:41 +01:00
|
|
|
url = "mirror://kde/stable/${release}/src/kde-l10n/kde-l10n-${lang}-${release}.tar.bz2";
|
|
|
|
name = "${name}.tar.bz2";
|
2010-12-26 16:26:01 +01: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-13 05:36:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
kdeL10nRelease =
|
2010-12-26 16:26:01 +01:00
|
|
|
builtins.listToAttrs (
|
2011-02-13 05:36:41 +01:00
|
|
|
map ({lang, saneName, sha256}:
|
2010-12-26 16:26:01 +01:00
|
|
|
{
|
2011-02-13 05:36:41 +01:00
|
|
|
name = saneName;
|
|
|
|
value = kdeL10nDerivation { inherit lang saneName sha256; };
|
2010-12-26 16:26:01 +01:00
|
|
|
}
|
|
|
|
) (import (./manifest + "-${release}.nix"))
|
|
|
|
);
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit kdeL10nDerivation;
|
|
|
|
recurseForDerivations = true;
|
2011-02-13 05:36:41 +01:00
|
|
|
} // kdeL10nRelease
|