Unverified Commit 4d2e57bd authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

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

scryer-prolog: Fix darwin build
parents 5fb4842f 26630635
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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";