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 03:45:46 +03:00
{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
2019-08-31 14:41:23 +03:00
pname = "mdbook";
version = "0.4.28";
src = fetchFromGitHub {
2021-08-08 10:03:03 +03:00
owner = "rust-lang";
repo = "mdBook";
2022-12-15 20:29:45 +03:00
rev = "refs/tags/v${version}";
sha256 = "sha256-9Otjl3JLEQo+WojUOu0XE1GH2P4LjKhaxSd1xoekXdk=";
};
cargoHash = "sha256-TViBclvCJeoOInTt13B7297JDtRkwvOjIf6AVAbpanU=";
2021-01-15 12:19:50 +03:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
2022-07-16 03:45:46 +03:00
passthru = {
tests = {
inherit nix;
};
};
meta = with lib; {
description = "Create books from MarkDown";
2021-08-08 10:03:03 +03:00
homepage = "https://github.com/rust-lang/mdBook";
2022-12-15 20:29:45 +03:00
changelog = "https://github.com/rust-lang/mdBook/blob/v${version}/CHANGELOG.md";
license = [ licenses.mpl20 ];
2022-12-15 20:46:28 +03:00
maintainers = with maintainers; [ havvy Frostman ];
};
}