From bd1519efc9bba66f2ab7debd38d65f4655345a34 Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Wed, 17 May 2023 21:39:37 +0200 Subject: [PATCH] mdbook-i18n-helpers: init 0.1.0 https://github.com/google/mdbook-i18n-helpers/releases/tag/0.1.0 --- .../text/mdbook-i18n-helpers/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/text/mdbook-i18n-helpers/default.nix diff --git a/pkgs/tools/text/mdbook-i18n-helpers/default.nix b/pkgs/tools/text/mdbook-i18n-helpers/default.nix new file mode 100644 index 0000000000000..1eebd0e859664 --- /dev/null +++ b/pkgs/tools/text/mdbook-i18n-helpers/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + pname = "mdbook-i18n-helpers"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "google"; + repo = "mdbook-i18n-helpers"; + rev = "refs/tags/${version}"; + hash = "sha256-3J7uHjHOpK2ympCZxtKieJamYepRQiBGIFo6HAQMGJ0="; + }; + + cargoHash = "sha256-cAuKQm0RZx3VRmLIL3WShsOlZMd6szI7cd9A0A4o8x8="; + + meta = with lib; { + description = "Helpers for a mdbook i18n workflow based on Gettext"; + homepage = "https://github.com/google/mdbook-i18n-helpers"; + changelog = "https://github.com/google/mdbook-i18n-helpers/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ teutat3s ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a3bf8528178c..e98b77d1ab0d3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9319,6 +9319,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreServices; }; + mdbook-i18n-helpers = callPackage ../tools/text/mdbook-i18n-helpers { }; + mdbook-katex = callPackage ../tools/text/mdbook-katex { inherit (darwin.apple_sdk.frameworks) CoreServices; };