2021-01-11 07:54:33 +00:00
|
|
|
{ lib, 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";
|
2021-06-03 00:27:02 +00:00
|
|
|
version = "0.4.9";
|
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}";
|
2021-06-03 00:27:02 +00:00
|
|
|
sha256 = "sha256-wc3poiLnIHbbl0j2sWQkEbxccpohPnvjLPdNuKfsDSY=";
|
2018-02-23 10:22:30 +00:00
|
|
|
};
|
|
|
|
|
2021-06-03 00:27:02 +00:00
|
|
|
cargoSha256 = "sha256-2DNfacPp9IMke2j8WYxpGmMxityaFGyXrc0jOyqPl3c=";
|
2018-02-23 10:22:30 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
2018-02-23 10:22:30 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-23 10:22:30 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|