depot/third_party/nixpkgs/pkgs/by-name/ci/cinnamon-translations/package.nix

34 lines
737 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
gettext,
}:
stdenv.mkDerivation rec {
pname = "cinnamon-translations";
version = "6.4.1";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-MMUXh8HFvISPZzu6+m/rm0/svLLml4OweZ7c4H9IHco=";
};
nativeBuildInputs = [
gettext
];
installPhase = ''
mv usr $out # files get installed like so: msgfmt -o usr/share/locale/$lang/LC_MESSAGES/$dir.mo $file
'';
meta = with lib; {
homepage = "https://github.com/linuxmint/cinnamon-translations";
description = "Translations files for the Cinnamon desktop";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}