2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
|
2018-02-23 02:22:30 -08:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 04:41:23 -07:00
|
|
|
pname = "mdbook";
|
2021-02-22 22:34:47 -08:00
|
|
|
version = "0.4.7";
|
2018-02-23 02:22:30 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-lang-nursery";
|
|
|
|
repo = "mdBook";
|
2018-07-14 11:33:02 -07:00
|
|
|
rev = "v${version}";
|
2021-02-22 22:34:47 -08:00
|
|
|
sha256 = "sha256-51S4I1YIbdgXkhuT7KnhJe71nGCQmr9JmuGtp7Bcxqo=";
|
2018-02-23 02:22:30 -08:00
|
|
|
};
|
|
|
|
|
2021-05-07 04:00:49 -07:00
|
|
|
cargoSha256 = "sha256-4bYLrmyI7cPUes6DYREiIB9gDze0KO2jMP/jPzvWbwQ=";
|
2018-02-23 02:22:30 -08:00
|
|
|
|
2021-01-15 01:19:50 -08:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
2018-02-23 02:22:30 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-02-23 02:22:30 -08:00
|
|
|
description = "Create books from MarkDown";
|
2020-03-20 18:15:54 -07:00
|
|
|
homepage = "https://github.com/rust-lang-nursery/mdbook";
|
2019-08-04 13:55:28 -07:00
|
|
|
license = [ licenses.mpl20 ];
|
2018-02-23 02:22:30 -08:00
|
|
|
maintainers = [ maintainers.havvy ];
|
|
|
|
};
|
|
|
|
}
|