87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
31 lines
829 B
Nix
31 lines
829 B
Nix
{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook";
|
|
version = "0.4.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rust-lang";
|
|
repo = "mdBook";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-9Otjl3JLEQo+WojUOu0XE1GH2P4LjKhaxSd1xoekXdk=";
|
|
};
|
|
|
|
cargoHash = "sha256-TViBclvCJeoOInTt13B7297JDtRkwvOjIf6AVAbpanU=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
passthru = {
|
|
tests = {
|
|
inherit nix;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Create books from MarkDown";
|
|
homepage = "https://github.com/rust-lang/mdBook";
|
|
changelog = "https://github.com/rust-lang/mdBook/blob/v${version}/CHANGELOG.md";
|
|
license = [ licenses.mpl20 ];
|
|
maintainers = with maintainers; [ havvy Frostman ];
|
|
};
|
|
}
|