nixpkgs/pkgs/desktops/kde-4.5/l10n/default.nix
Eelco Dolstra a3fe61586c * Updated KDE to 4.5.5.
* Removed the KDE version number from all expressions except the
  top-level default.nix.  This makes it easier to upgrade.
* Deleted the old l10n versions since there doesn't seem to be a good
  reason to keep them around. 
* Don't use replaceChars (slow!) but do the name sanitization in
  l10n-manifest.sh.

svn path=/nixpkgs/trunk/; revision=25760
2011-02-02 13:54:35 +00:00

43 lines
1 KiB
Nix

{ stdenv, fetchurl, cmake, kdelibs, gettext, perl, automoc4, release }:
let
inherit (stdenv.lib) attrByPath singleton;
kdeL10nDerivation =
{ lang, saneName, sha256 }:
stdenv.mkDerivation rec {
name = "kde-l10n-${saneName}-${release}";
src = fetchurl {
url = "mirror://kde/stable/${release}/src/kde-l10n/kde-l10n-${lang}-${release}.tar.bz2";
name = "${name}.tar.bz2";
inherit sha256;
};
buildInputs = [ cmake perl gettext kdelibs automoc4 ];
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