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 04:41:23 -07:00
pname = "mdbook";
2021-01-19 22:48:54 -08:00
version = "0.4.6";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
2018-07-14 11:33:02 -07:00
rev = "v${version}";
2021-01-19 22:48:54 -08:00
sha256 = "sha256-cS2fME3X8bFmEz6czoL+2ZFbflJP58+lIeC5SVleCNg=";
};
2021-01-19 22:48:54 -08:00
cargoSha256 = "sha256-iuJyprLp6HofcdH0NgNK2Vl+1FtdAvZPcltPUb5B2XU=";
2021-01-15 01:19:50 -08:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with lib; {
description = "Create books from MarkDown";
2020-03-20 18:15:54 -07:00
homepage = "https://github.com/rust-lang-nursery/mdbook";
license = [ licenses.mpl20 ];
maintainers = [ maintainers.havvy ];
};
}