Merge pull request #305505 from exlee/scryer-prolog-on-darwin
scryer-prolog: Fix darwin build
This commit is contained in:
commit
4d2e57bd22
|
@ -7,6 +7,7 @@
|
||||||
, libmpc
|
, libmpc
|
||||||
, mpfr
|
, mpfr
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
@ -23,12 +24,15 @@ rustPlatform.buildRustPackage rec {
|
||||||
cargoSha256 = "sha256-q8s6HAJhKnMhsgZk5plR+ar3CpLKNqjrD14roDWLwfo=";
|
cargoSha256 = "sha256-q8s6HAJhKnMhsgZk5plR+ar3CpLKNqjrD14roDWLwfo=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl gmp libmpc mpfr ];
|
|
||||||
|
buildInputs = [ openssl gmp libmpc mpfr ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
|
];
|
||||||
|
|
||||||
CARGO_FEATURE_USE_SYSTEM_LIBS = true;
|
CARGO_FEATURE_USE_SYSTEM_LIBS = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
description = "A modern Prolog implementation written mostly in Rust";
|
description = "A modern Prolog implementation written mostly in Rust";
|
||||||
mainProgram = "scryer-prolog";
|
mainProgram = "scryer-prolog";
|
||||||
homepage = "https://github.com/mthom/scryer-prolog";
|
homepage = "https://github.com/mthom/scryer-prolog";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user