10 rustPlatform.buildRustPackage rec {
11 pname = "scryer-prolog";
14 src = fetchFromGitHub {
16 repo = "scryer-prolog";
18 hash = "sha256-0c0MsjrHRitg+5VEHB9/iSuiqcPztF+2inDZa9fQpwU=";
21 cargoHash = "sha256-q8s6HAJhKnMhsgZk5plR+ar3CpLKNqjrD14roDWLwfo=";
23 nativeBuildInputs = [ pkg-config ];
25 buildInputs = [ openssl ]
26 ++ lib.optionals stdenv.hostPlatform.isDarwin [
27 darwin.apple_sdk.frameworks.SystemConfiguration
30 CARGO_FEATURE_USE_SYSTEM_LIBS = true;
33 description = "Modern Prolog implementation written mostly in Rust";
34 mainProgram = "scryer-prolog";
35 homepage = "https://github.com/mthom/scryer-prolog";
36 license = with licenses; [ bsd3 ];
37 maintainers = with maintainers; [ malbarbo wkral ];