2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, stdenv
|
2023-01-20 10:41:00 +00:00
|
|
|
, darwin
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hvm";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.0.9";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-dO0GzbMopX84AKOtJYYW6vojcs4kYcZ8LQ4tXEgUN7I=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-RQnyVRHWrqnKcI3Jy593jDTydG1nGyrScsqSNyJTDJk=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk_11_0.frameworks.IOKit
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
# tests are broken
|
2022-09-30 11:47:45 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
# enable nightly features
|
|
|
|
RUSTC_BOOTSTRAP = true;
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A pure functional compile target that is lazy, non-garbage-collected, and parallel";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "hvm";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/higherorderco/hvm";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|