2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
|
2018-02-23 11:22:30 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "mdbook";
|
2021-01-05 15:58:19 +01:00
|
|
|
version = "0.4.5";
|
2018-02-23 11:22:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-lang-nursery";
|
|
|
|
repo = "mdBook";
|
2018-07-14 20:33:02 +02:00
|
|
|
rev = "v${version}";
|
2021-01-05 15:58:19 +01:00
|
|
|
sha256 = "11v2x0q8pn7hbmznqy872ksr7szyiki9cfhapymjhkf5nwfvcdbb";
|
2018-02-23 11:22:30 +01:00
|
|
|
};
|
|
|
|
|
2021-01-05 15:58:19 +01:00
|
|
|
cargoSha256 = "1psgqj04hzv7p18h4phsahxg4rj9yz38b8mh111k6l8m4r83kd75";
|
2018-02-23 11:22:30 +01:00
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
2018-02-23 11:22:30 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-23 11:22:30 +01:00
|
|
|
description = "Create books from MarkDown";
|
2020-03-21 02:15:54 +01:00
|
|
|
homepage = "https://github.com/rust-lang-nursery/mdbook";
|
2019-08-04 22:55:28 +02:00
|
|
|
license = [ licenses.mpl20 ];
|
2018-02-23 11:22:30 +01:00
|
|
|
maintainers = [ maintainers.havvy ];
|
|
|
|
};
|
|
|
|
}
|