depot/third_party/nixpkgs/pkgs/development/compilers/hvm/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

37 lines
902 B
Nix

{ lib
, rustPlatform
, fetchCrate
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "hvm";
version = "1.0.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-nPkUGUcekZ2fvQgiVTNvt8vfQsNMyqsrkT2zqEfu/bE=";
};
cargoSha256 = "sha256-EaZTpKFZPfDlP/2XylhJHznvlah7VNw4snrKDmT7ecw=";
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
];
# tests are broken
doCheck = false;
# enable nightly features
RUSTC_BOOTSTRAP = true;
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 ];
};
}