3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/mdbook/default.nix

25 lines
655 B
Nix
Raw Normal View History

2021-07-07 22:21:12 +01:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "mdbook";
2021-08-08 08:03:03 +01:00
version = "0.4.12";
src = fetchFromGitHub {
2021-08-08 08:03:03 +01:00
owner = "rust-lang";
repo = "mdBook";
2018-07-14 19:33:02 +01:00
rev = "v${version}";
2021-08-08 08:03:03 +01:00
sha256 = "sha256-2lxotwL3Dc9jRA12iKO5zotO80pa+RfUZucyDRgFOsI=";
};
2021-08-08 08:03:03 +01:00
cargoSha256 = "sha256-TNd4pj4qSKgmmVtSCSKFCxNtv96xD7+24BPsLXPgiEI=";
2021-01-15 09:19:50 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with lib; {
description = "Create books from MarkDown";
2021-08-08 08:03:03 +01:00
homepage = "https://github.com/rust-lang/mdBook";
license = [ licenses.mpl20 ];
maintainers = [ maintainers.havvy ];
};
}