nixpkgs/pkgs/development/compilers/hvm/default.nix

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

36 lines
778 B
Nix
Raw Normal View History

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