lol
1{ stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
2
3rustPlatform.buildRustPackage rec {
4 name = "mdbook-${version}";
5 version = "0.1.8";
6
7 src = fetchFromGitHub {
8 owner = "rust-lang-nursery";
9 repo = "mdBook";
10 rev = "v${version}";
11 sha256 = "1xmw4v19ff6mvimwk5l437wslzw5npy60zdb8r4319bjf32pw9pn";
12 };
13
14 cargoSha256 = "0kcc0b2644qbalz7dnqwxsjdmw1h57k0rjrvwqh8apj2sgl64gyv";
15
16 buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
17
18 meta = with stdenv.lib; {
19 description = "Create books from MarkDown";
20 homepage = https://github.com/rust-lang-nursery/mdbook;
21 license = [ licenses.asl20 licenses.mit ];
22 maintainers = [ maintainers.havvy ];
23 platforms = platforms.all;
24
25 # Because CoreServices needs to be updated,
26 # but Apple won't release the source.
27 broken = stdenv.isDarwin;
28 };
29}