evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sc / scryer-prolog / package.nix
blob58a853e66d88651af311ca135caa43e92da8e53f
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , stdenv
7 , darwin
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "scryer-prolog";
12   version = "0.9.4";
14   src = fetchFromGitHub {
15     owner = "mthom";
16     repo = "scryer-prolog";
17     rev = "v${version}";
18     hash = "sha256-0c0MsjrHRitg+5VEHB9/iSuiqcPztF+2inDZa9fQpwU=";
19   };
21   cargoHash = "sha256-q8s6HAJhKnMhsgZk5plR+ar3CpLKNqjrD14roDWLwfo=";
23   nativeBuildInputs = [ pkg-config ];
25   buildInputs = [ openssl ]
26                 ++ lib.optionals stdenv.hostPlatform.isDarwin [
27                   darwin.apple_sdk.frameworks.SystemConfiguration
28                 ];
30   CARGO_FEATURE_USE_SYSTEM_LIBS = true;
32   meta = with lib; {
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 ];
38   };