3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/mdbook/default.nix

26 lines
720 B
Nix
Raw Normal View History

2019-04-17 07:36:26 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "mdbook";
2020-03-21 01:15:54 +00:00
version = "0.3.6";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
2018-07-14 19:33:02 +01:00
rev = "v${version}";
2020-03-21 01:15:54 +00:00
sha256 = "07rpak233mi6ssqbpqsccn66a32jcgl90a5iyl2l5yyxw95rcya0";
};
2020-03-21 01:15:54 +00:00
cargoSha256 = "0aanngwx7k86fb11zjx4wx954md446nn8667f2plr6bkqmlpxlkr";
2019-06-20 17:35:02 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
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";
license = [ licenses.mpl20 ];
maintainers = [ maintainers.havvy ];
platforms = platforms.all;
};
}