nixpkgs/pkgs/tools/text/mdbook/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
829 B
Nix
Raw Normal View History

2022-07-16 01:45:46 +01:00
{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "mdbook";
2023-07-23 04:21:14 +01:00
version = "0.4.32";
src = fetchFromGitHub {
2021-08-08 08:03:03 +01:00
owner = "rust-lang";
repo = "mdBook";
2022-12-15 17:29:45 +00:00
rev = "refs/tags/v${version}";
2023-07-23 04:21:14 +01:00
sha256 = "sha256-+Cb4ZFkJu6z2x/HqQkVqb2J0tFuj78TAmzhp2VPiai0=";
};
2023-07-23 04:21:14 +01:00
cargoHash = "sha256-Jj5AWapZUzd/ZZQvvlSWOv2dX4AhJyHKEncIPdLL7cA=";
2021-01-15 09:19:50 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
2022-07-16 01:45:46 +01:00
passthru = {
tests = {
inherit nix;
};
};
meta = with lib; {
description = "Create books from MarkDown";
2021-08-08 08:03:03 +01:00
homepage = "https://github.com/rust-lang/mdBook";
2022-12-15 17:29:45 +00:00
changelog = "https://github.com/rust-lang/mdBook/blob/v${version}/CHANGELOG.md";
license = [ licenses.mpl20 ];
2022-12-15 17:46:28 +00:00
maintainers = with maintainers; [ havvy Frostman ];
};
}