diff options
author | Ryan Scheel <Ryan.havvy@gmail.com> | 2018-02-23 02:22:30 -0800 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-02-23 10:22:30 +0000 |
commit | a35d106d070a03a78d57b04f9bdb96faa10dcee0 (patch) | |
tree | 3311da7731ac3e56c92b50572955df1387058ed6 /pkgs/tools/text/mdbook | |
parent | e066751227b8ddf9d61c3f52a552e4d7a1da1c2a (diff) |
mdbook: init at 0.1.3 (#35250)
* mdbook: Init at 0.1.3 * mdbook: simplification * Mark mdbook as broken on Darwin
Diffstat (limited to 'pkgs/tools/text/mdbook')
-rw-r--r-- | pkgs/tools/text/mdbook/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdbook/default.nix b/pkgs/tools/text/mdbook/default.nix new file mode 100644 index 0000000000000..5bbe8cfd0943a --- /dev/null +++ b/pkgs/tools/text/mdbook/default.nix @@ -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; + }; +} |