nixpkgs/pkgs/development/compilers/scryer-prolog/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
984 B
Nix
Raw Normal View History

{ lib
2019-12-05 13:06:15 +00:00
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
2019-12-05 13:06:15 +00:00
, gmp
, libmpc
, mpfr
, stdenv
, darwin
2019-12-05 13:06:15 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "scryer-prolog";
2024-03-02 01:32:09 +00:00
version = "0.9.4";
2019-12-05 13:06:15 +00:00
src = fetchFromGitHub {
owner = "mthom";
repo = "scryer-prolog";
rev = "v${version}";
2024-03-02 01:32:09 +00:00
hash = "sha256-0c0MsjrHRitg+5VEHB9/iSuiqcPztF+2inDZa9fQpwU=";
2019-12-05 13:06:15 +00:00
};
2024-03-02 01:32:09 +00:00
cargoSha256 = "sha256-q8s6HAJhKnMhsgZk5plR+ar3CpLKNqjrD14roDWLwfo=";
2022-03-14 19:31:05 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl gmp libmpc mpfr ]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
2019-12-05 13:06:15 +00:00
CARGO_FEATURE_USE_SYSTEM_LIBS = true;
2019-12-05 13:06:15 +00:00
meta = with lib; {
description = "Modern Prolog implementation written mostly in Rust";
mainProgram = "scryer-prolog";
2019-12-05 13:06:15 +00:00
homepage = "https://github.com/mthom/scryer-prolog";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ malbarbo wkral ];
2019-12-05 13:06:15 +00:00
};
}