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.

52 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
2019-12-05 13:06:15 +00:00
, rustPlatform
, fetchFromGitHub
2023-11-06 09:45:38 +00:00
, fetchpatch
, pkg-config
, openssl
2019-12-05 13:06:15 +00:00
, gmp
, libmpc
, mpfr
, stdenv
2019-12-05 13:06:15 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "scryer-prolog";
2023-11-06 09:45:38 +00:00
version = "0.9.3";
2019-12-05 13:06:15 +00:00
src = fetchFromGitHub {
owner = "mthom";
repo = "scryer-prolog";
rev = "v${version}";
2023-11-06 09:45:38 +00:00
hash = "sha256-0J69Zl+ONvR6T+xf2YeShwn3/JWOHyFHLpNFwmEaIOI=";
2019-12-05 13:06:15 +00:00
};
2023-11-06 09:45:38 +00:00
patches = [
(fetchpatch {
name = "cargo-lock-version-bump.patch";
url = "https://github.com/mthom/scryer-prolog/commit/d6fe5b5aaddb9886a8a34841a65cb28c317c2913.patch";
hash = "sha256-xkGsjVV/FcyZXGkI84FlqcRIuDM7isCCWZ1sbKql7es=";
})
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"modular-bitfield-0.11.2" = "sha256-vcx+xt5owZVWOlKwudAr0EB1zlLLL5pVfWokw034BQI=";
};
};
2022-03-14 19:31:05 +00:00
nativeBuildInputs = [ pkg-config ];
2019-12-05 13:06:15 +00:00
buildInputs = [ openssl gmp libmpc mpfr ];
CARGO_FEATURE_USE_SYSTEM_LIBS = true;
2019-12-05 13:06:15 +00:00
meta = with lib; {
broken = stdenv.isDarwin;
description = "A modern Prolog implementation written mostly in Rust";
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
};
}