Skip to content

Commit

Permalink
mdbook: fix Darwin support (#59385)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball authored and veprbl committed Apr 17, 2019
1 parent 1ceef41 commit e50f79a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkgs/tools/text/mdbook/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:

rustPlatform.buildRustPackage rec {
name = "mdbook-${version}";
Expand All @@ -13,17 +13,17 @@ rustPlatform.buildRustPackage rec {

cargoSha256 = "0kcc0b2644qbalz7dnqwxsjdmw1h57k0rjrvwqh8apj2sgl64gyv";

buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
CoreServices
# This is needed to avoid an undefined symbol error for "_CFURLResourceIsReachable"
darwin.cf-private
];

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;
};
}

0 comments on commit e50f79a

Please sign in to comment.