2019-04-17 06:36:26 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
|
2018-02-23 10:22:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "mdbook";
|
2020-08-12 14:06:51 +00:00
|
|
|
version = "0.4.2";
|
2018-02-23 10:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-lang-nursery";
|
|
|
|
repo = "mdBook";
|
2018-07-14 18:33:02 +00:00
|
|
|
rev = "v${version}";
|
2020-08-12 14:06:51 +00:00
|
|
|
sha256 = "0rkl5k7a9a0vx06jqvbgki2bwag0ar2pcbg3qi88xnjnnmphzpzj";
|
2018-02-23 10:22:30 +00:00
|
|
|
};
|
|
|
|
|
2020-08-12 14:06:51 +00:00
|
|
|
cargoSha256 = "1zhlb6wnjnayq833h62nm3ndlhiz1qajw8w5ccc88b8q8m4ipd7c";
|
2018-02-23 10:22:30 +00:00
|
|
|
|
2019-06-20 16:35:02 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
2018-02-23 10:22:30 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Create books from MarkDown";
|
2020-03-21 01:15:54 +00:00
|
|
|
homepage = "https://github.com/rust-lang-nursery/mdbook";
|
2019-08-04 20:55:28 +00:00
|
|
|
license = [ licenses.mpl20 ];
|
2018-02-23 10:22:30 +00:00
|
|
|
maintainers = [ maintainers.havvy ];
|
|
|
|
};
|
|
|
|
}
|