mdbook: init at 0.1.3 (#35250)
* mdbook: Init at 0.1.3 * mdbook: simplification * Mark mdbook as broken on Darwin
This commit is contained in:
parent
e066751227
commit
a35d106d07
30
pkgs/tools/text/mdbook/default.nix
Normal file
30
pkgs/tools/text/mdbook/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
name = "mdbook-${version}";
|
||||||
|
version = "0.1.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rust-lang-nursery";
|
||||||
|
repo = "mdBook";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0m0vprjpd02z4nr3vd4qha2jka7l36k4liw8jcbf4xs09c584sjv";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "19hpr78p9rzgirq6fjw8v11d5mgcglms6vbqgjyvg49xmkklsqzr";
|
||||||
|
depsSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx";
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Create books from MarkDown";
|
||||||
|
homepage = https://github.com/rust-lang-nursery/mdbook;
|
||||||
|
license = [ licenses.asl20 licenses.mit ];
|
||||||
|
maintainers = [ maintainers.havvy ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
|
||||||
|
# Because CoreServices needs to be updated,
|
||||||
|
# but Apple won't release the source.
|
||||||
|
broken = stdenv.isDarwin;
|
||||||
|
};
|
||||||
|
}
|
@ -3172,6 +3172,10 @@ with pkgs;
|
|||||||
|
|
||||||
matrix-synapse = callPackage ../servers/matrix-synapse { };
|
matrix-synapse = callPackage ../servers/matrix-synapse { };
|
||||||
|
|
||||||
|
mdbook = callPackage ../tools/text/mdbook {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
};
|
||||||
|
|
||||||
memtester = callPackage ../tools/system/memtester { };
|
memtester = callPackage ../tools/system/memtester { };
|
||||||
|
|
||||||
minidlna = callPackage ../tools/networking/minidlna { };
|
minidlna = callPackage ../tools/networking/minidlna { };
|
||||||
|
Loading…
Reference in New Issue
Block a user