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