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

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

38 lines
902 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-01-13 22:20:41 +00:00
version = "1.0.0";
2022-09-25 16:03:11 +00:00
src = fetchCrate {
inherit pname version;
2023-01-13 22:20:41 +00:00
sha256 = "sha256-nPkUGUcekZ2fvQgiVTNvt8vfQsNMyqsrkT2zqEfu/bE=";
2022-09-25 16:03:11 +00:00
};
2023-01-13 22:20:41 +00:00
cargoSha256 = "sha256-EaZTpKFZPfDlP/2XylhJHznvlah7VNw4snrKDmT7ecw=";
2022-09-25 16:03:11 +00:00
2023-01-13 22:20:41 +00:00
buildInputs = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
darwin.apple_sdk.frameworks.IOKit
] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
darwin.apple_sdk_11_0.frameworks.Foundation
];
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/kindelia/hvm";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}