nixpkgs/pkgs/tools/text/mdbook-i18n-helpers/default.nix
2024-06-14 13:53:47 +00:00

28 lines
816 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "mdbook-i18n-helpers";
version = "0.3.4";
src = fetchFromGitHub {
owner = "google";
repo = "mdbook-i18n-helpers";
# TODO fix once upstream uses semver for tags again
rev = "refs/tags/mdbook-i18n-helpers-${version}";
hash = "sha256-nIavOBWPyCmCLwPcDbjjG1sa71HObGnhms9sSCAR2iA=";
};
cargoHash = "sha256-bBUgsZHvJPwsdM3DjhaoAvIkPXQ6gzPOdfcE5rAnMQk=";
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 matthiasbeyer ];
};
}