about summary refs log tree commit diff
path: root/pkgs/desktops/cinnamon/cinnamon-translations
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2020-01-20 19:15:48 +0100
committerMaciej Krüger <mkg20001@gmail.com>2020-01-21 02:00:29 +0100
commit1170b0ecb02b50172efafc26b8ff607a695645f8 (patch)
treeeced29dbc87f2b8153af443236c0fa4954a58407 /pkgs/desktops/cinnamon/cinnamon-translations
parent66eca6fbe36d2ed561040fce4996540ad1d2a908 (diff)
downloadnixlib-1170b0ecb02b50172efafc26b8ff607a695645f8.tar
nixlib-1170b0ecb02b50172efafc26b8ff607a695645f8.tar.gz
nixlib-1170b0ecb02b50172efafc26b8ff607a695645f8.tar.bz2
nixlib-1170b0ecb02b50172efafc26b8ff607a695645f8.tar.lz
nixlib-1170b0ecb02b50172efafc26b8ff607a695645f8.tar.xz
nixlib-1170b0ecb02b50172efafc26b8ff607a695645f8.tar.zst
nixlib-1170b0ecb02b50172efafc26b8ff607a695645f8.zip
cinnamon.cinnamon-translations: init at 4.4.0
Diffstat (limited to 'pkgs/desktops/cinnamon/cinnamon-translations')
-rw-r--r--pkgs/desktops/cinnamon/cinnamon-translations/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/desktops/cinnamon/cinnamon-translations/default.nix b/pkgs/desktops/cinnamon/cinnamon-translations/default.nix
new file mode 100644
index 000000000000..65df49a5a1c0
--- /dev/null
+++ b/pkgs/desktops/cinnamon/cinnamon-translations/default.nix
@@ -0,0 +1,31 @@
+{ stdenv
+, fetchFromGitHub
+, gettext
+}:
+
+stdenv.mkDerivation rec {
+  pname = "cinnamon-translations";
+  version = "4.4.0";
+
+  src = fetchFromGitHub {
+    owner = "linuxmint";
+    repo = pname;
+    rev = version;
+    sha256 = "0hh6shfj7vc1mw814l38cakfmh135ba8j604h1rmx4zwspwgvgzh";
+  };
+
+  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";
+    platforms = platforms.linux;
+    maintainers = [ maintainers.mkg20001 ];
+  };
+}