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

25 lines
671 B
Nix
Raw Normal View History

2021-07-07 23:21:12 +02:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
2019-08-31 13:41:23 +02:00
pname = "mdbook";
2021-07-07 10:23:04 +02:00
version = "0.4.10";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "mdBook";
2018-07-14 20:33:02 +02:00
rev = "v${version}";
2021-07-07 10:23:04 +02:00
sha256 = "sha256-1Ddy/kb2Q7P+tzyEr3EC3qWm6MGSsDL3/vnPJLAm/J0=";
};
2021-07-07 10:23:04 +02:00
cargoSha256 = "sha256-x2BwnvEwTqz378aDE7OHWuEwNEsUnRudLq7sUJjHRpA=";
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 ];
};
}