Skip to content

Commit

Permalink
Merge pull request #232486 from teutat3s/init/mdbook-i18n-helper
Browse files Browse the repository at this point in the history
mdbook-i18n-helpers: init 0.1.0
  • Loading branch information
SuperSandro2000 authored May 21, 2023
2 parents d967405 + bd1519e commit c35303e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pkgs/tools/text/mdbook-i18n-helpers/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9356,6 +9356,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;
};
Expand Down

0 comments on commit c35303e

Please sign in to comment.