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

25 lines
678 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "mdbook";
2021-02-23 06:34:47 +00:00
version = "0.4.7";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
2018-07-14 19:33:02 +01:00
rev = "v${version}";
2021-02-23 06:34:47 +00:00
sha256 = "sha256-51S4I1YIbdgXkhuT7KnhJe71nGCQmr9JmuGtp7Bcxqo=";
};
2021-02-23 06:34:47 +00:00
cargoSha256 = "sha256-2kBJcImytsSd7Q0kj1bsP/NXxyy2Pr8gHb8iNf6h3/4=";
2021-01-15 09:19:50 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with 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 ];
};
}