Merge pull request #305505 from exlee/scryer-prolog-on-darwin

scryer-prolog: Fix darwin build
This commit is contained in:
Mario Rodas 2024-04-21 19:12:20 -05:00 committed by GitHub
commit 4d2e57bd22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@
, libmpc
, mpfr
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
@ -23,12 +24,15 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-q8s6HAJhKnMhsgZk5plR+ar3CpLKNqjrD14roDWLwfo=";
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;
meta = with lib; {
broken = stdenv.isDarwin;
description = "A modern Prolog implementation written mostly in Rust";
mainProgram = "scryer-prolog";
homepage = "https://github.com/mthom/scryer-prolog";