nixpkgs/pkgs/desktops/kde-4.12/l10n/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2014-02-18 01:18:02 +00:00
{ stdenv, fetchurl, kdelibs, gettext, release, branch, stable }:
2014-02-13 02:25:11 +00:00
let
inherit (stdenv.lib) attrByPath singleton;
kdeL10nDerivation =
{ lang, saneName, sha256 }:
stdenv.mkDerivation rec {
name = "kde-l10n-${saneName}-${release}";
src = fetchurl {
url = "mirror://kde/${if stable then "" else "un"}stable/${release}/src/kde-l10n/kde-l10n-${lang}-${release}.tar.xz";
name = "${name}.tar.xz";
inherit sha256;
};
buildInputs = [ gettext kdelibs ];
cmakeFlags = "-Wno-dev";
meta = {
description = "KDE translation for ${lang}";
2014-02-18 01:18:02 +00:00
inherit branch;
2014-02-13 02:25:11 +00:00
license = "GPL";
platforms = stdenv.lib.platforms.linux;
inherit (kdelibs.meta) maintainers 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