2019-04-17 07:36:26 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
|
2018-02-23 10:22:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "mdbook";
|
2020-04-05 03:28:00 +01:00
|
|
|
version = "0.3.7";
|
2018-02-23 10:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-lang-nursery";
|
|
|
|
repo = "mdBook";
|
2018-07-14 19:33:02 +01:00
|
|
|
rev = "v${version}";
|
2020-04-05 03:28:00 +01:00
|
|
|
sha256 = "0a5i842aqa5xaii5lfrnks0ldavbhbd3bl4f2d442i1ahbin5b32";
|
2018-02-23 10:22:30 +00:00
|
|
|
};
|
|
|
|
|
2020-04-05 03:28:00 +01:00
|
|
|
cargoSha256 = "1qx3447y684b7y18lgk9cc37if2ld42jnmy1kak191q6rjh5ssh7";
|
2018-02-23 10:22:30 +00:00
|
|
|
|
2019-06-20 17:35:02 +01: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 21:55:28 +01:00
|
|
|
license = [ licenses.mpl20 ];
|
2018-02-23 10:22:30 +00:00
|
|
|
maintainers = [ maintainers.havvy ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|