mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
ac1c6209f5
Diff: https://github.com/rust-lang/mdBook/compare/refs/tags/v0.4.30...v0.4.31 Changelog: https://github.com/rust-lang/mdBook/blob/v0.4.31/CHANGELOG.md
32 lines
829 B
Nix
32 lines
829 B
Nix
{ lib, stdenv, fetchFromGitHub, nix, rustPlatform, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook";
|
|
version = "0.4.31";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rust-lang";
|
|
repo = "mdBook";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-OUhZ94bW1+tmUPm/NLlL+Ummm2rtkJTBnNZ00hsTO5I=";
|
|
};
|
|
|
|
cargoHash = "sha256-u8764RKgC35Z18KHw4AAxETPlACrMnVyz4/Aa2HQyEw=";
|
|
|
|
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 ];
|
|
};
|
|
}
|