mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 08:05:40 +00:00
c65ada160e
* Switch to .tar.xz. * Update fixed-output derivations hashes. * Add kde-base-artwork (ksplashx themes) svn path=/nixpkgs/trunk/; revision=32874
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ stdenv, fetchurl, kdelibs, gettext, release, stable }:
|
|
|
|
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}";
|
|
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
|