mdbook: fix Darwin support (#59385)
This commit is contained in:
parent
1ceef41c29
commit
e50f79a110
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
{ stdenv, fetchFromGitHub, rustPlatform, CoreServices, darwin }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "mdbook-${version}";
|
name = "mdbook-${version}";
|
||||||
@ -13,7 +13,11 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "0kcc0b2644qbalz7dnqwxsjdmw1h57k0rjrvwqh8apj2sgl64gyv";
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Create books from MarkDown";
|
description = "Create books from MarkDown";
|
||||||
@ -21,9 +25,5 @@ rustPlatform.buildRustPackage rec {
|
|||||||
license = [ licenses.asl20 licenses.mit ];
|
license = [ licenses.asl20 licenses.mit ];
|
||||||
maintainers = [ maintainers.havvy ];
|
maintainers = [ maintainers.havvy ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
||||||
# Because CoreServices needs to be updated,
|
|
||||||
# but Apple won't release the source.
|
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user