nixpkgs/pkgs/tools/text/mdbook/default.nix

25 lines
689 B
Nix
Raw Normal View History

2019-04-17 08:36:26 +02:00
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
rustPlatform.buildRustPackage rec {
2019-08-31 13:41:23 +02:00
pname = "mdbook";
2020-10-25 21:44:45 +01:00
version = "0.4.4";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
2018-07-14 20:33:02 +02:00
rev = "v${version}";
2020-10-25 21:44:45 +01:00
sha256 = "0nqr5a27i91m71fhpycf60q54qplc920y1fmk9hav3pbb9wcc5dl";
};
2020-10-25 21:44:45 +01:00
cargoSha256 = "1p72iwl9ca7a92nf6wyjjbn0qns0xxb4xrbz2r2nmd83cxs0fplg";
2019-06-20 18:35:02 +02:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
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";
license = [ licenses.mpl20 ];
maintainers = [ maintainers.havvy ];
};
}