2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, stdenv
|
2023-02-02 18:25:31 +00:00
|
|
|
, darwin
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kind2";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.3.10";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-X2sjfYrSSym289jDJV3hNmcwyQCMnrabmGCUKD5wfdY=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-KzoEh/kMKsHx9K3t1/uQZ7fdsZEM+v8UOft8JjEB1Zw=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-02-02 18:25:31 +00:00
|
|
|
darwin.apple_sdk_11_0.frameworks.Security
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# requires nightly features
|
|
|
|
RUSTC_BOOTSTRAP = true;
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Functional programming language and proof assistant";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kind2";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/higherorderco/kind";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|