depot/third_party/nixpkgs/pkgs/desktops/cinnamon/cinnamon-translations/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

33 lines
731 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, gettext
}:
stdenv.mkDerivation rec {
pname = "cinnamon-translations";
version = "5.8.2";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-hFqCKzJogGka6vsIj8SCL9GMDsTQO50jwpYKr74V5Fo=";
};
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;
};
}