mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
33 lines
737 B
Nix
33 lines
737 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, gettext
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cinnamon-translations";
|
|
version = "4.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1n1nkapcgxmbv0l8hrx5cf588pi4ifx12xbz46lq4p1ijrlfivba";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
];
|
|
|
|
installPhase = ''
|
|
mv usr $out # files get installed like so: msgfmt -o usr/share/locale/$lang/LC_MESSAGES/$dir.mo $file
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/linuxmint/cinnamon-translations";
|
|
description = "Translations files for the Cinnamon desktop";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.mkg20001 ];
|
|
};
|
|
}
|