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

25 lines
680 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
rustPlatform.buildRustPackage rec {
2019-08-31 13:41:23 +02:00
pname = "mdbook";
2021-01-05 15:58:19 +01:00
version = "0.4.5";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
2018-07-14 20:33:02 +02:00
rev = "v${version}";
2021-01-05 15:58:19 +01:00
sha256 = "11v2x0q8pn7hbmznqy872ksr7szyiki9cfhapymjhkf5nwfvcdbb";
};
2021-01-05 15:58:19 +01:00
cargoSha256 = "1psgqj04hzv7p18h4phsahxg4rj9yz38b8mh111k6l8m4r83kd75";
2021-01-15 10:19:50 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with 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 ];
};
}