2021-02-06 14:35:42 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-01-20 19:15:48 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-translations";
|
2021-11-24 10:15:00 +01:00
|
|
|
version = "5.2.0";
|
2020-01-20 19:15:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-24 10:15:00 +01:00
|
|
|
hash = "sha256-t3PydmS2+LU++2NcosgMr9KTXW0Qy1Re9+YcS3KMDi8=";
|
2020-01-20 19:15:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv usr $out # files get installed like so: msgfmt -o usr/share/locale/$lang/LC_MESSAGES/$dir.mo $file
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-20 19:15:48 +01:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon-translations";
|
|
|
|
description = "Translations files for the Cinnamon desktop";
|
2020-01-22 11:08:15 +01:00
|
|
|
license = licenses.gpl2;
|
2020-01-20 19:15:48 +01:00
|
|
|
platforms = platforms.linux;
|
2020-09-06 00:40:47 +02:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-01-20 19:15:48 +01:00
|
|
|
};
|
|
|
|
}
|