2019-04-17 08:36:26 +02:00
|
|
|
{ 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";
|
2020-09-25 23:44:30 +02:00
|
|
|
version = "0.4.3";
|
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}";
|
2020-09-25 23:44:30 +02:00
|
|
|
sha256 = "1566jabmvafv6aiw5nvb6y2zcnxc7pbb9dl3s4vi6mx21kqp68ag";
|
2018-02-23 11:22:30 +01:00
|
|
|
};
|
|
|
|
|
2020-09-25 23:44:30 +02:00
|
|
|
cargoSha256 = "0sa1h3qzdhgk2h3wrc0kg0ajq6zbkvn1ry4672gfn3j9gpgvy2bb";
|
2018-02-23 11:22:30 +01:00
|
|
|
|
2019-06-20 18:35:02 +02:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
2018-02-23 11:22:30 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|