2019-04-17 07:36:26 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
|
2018-02-23 10:22:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "mdbook-${version}";
|
2018-07-14 19:33:02 +01:00
|
|
|
version = "0.1.8";
|
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}";
|
|
|
|
sha256 = "1xmw4v19ff6mvimwk5l437wslzw5npy60zdb8r4319bjf32pw9pn";
|
2018-02-23 10:22:30 +00:00
|
|
|
};
|
|
|
|
|
2019-05-25 12:03:08 +01:00
|
|
|
cargoSha256 = "1xpsc4qff2lrq15mz1gvmw6n5vl88sfwpjbsnp5ja5k1im156lam";
|
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";
|
|
|
|
homepage = https://github.com/rust-lang-nursery/mdbook;
|
|
|
|
license = [ licenses.asl20 licenses.mit ];
|
|
|
|
maintainers = [ maintainers.havvy ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|