depot/third_party/nixpkgs/pkgs/tools/text/mdbook/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

31 lines
843 B
Nix

{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook";
version = "0.4.35";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "mdBook";
rev = "refs/tags/v${version}";
sha256 = "sha256-oplR34M2PbcIwrfIkA4Ttk2zt3ve883TfXGIDnfJt/4=";
};
cargoHash = "sha256-D0XhrweO0A1+81Je4JZ0lmnbIHstNvefpmogCyB4FEE=";
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
passthru = {
tests = {
inherit nix;
};
};
meta = with lib; {
description = "Create books from MarkDown";
homepage = "https://github.com/rust-lang/mdBook";
changelog = "https://github.com/rust-lang/mdBook/blob/v${version}/CHANGELOG.md";
license = [ licenses.mpl20 ];
maintainers = with maintainers; [ havvy Frostman matthiasbeyer ];
};
}