summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/hvm/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/hvm/default.nix')
-rw-r--r--pkgs/development/compilers/hvm/default.nix23
1 files changed, 13 insertions, 10 deletions
diff --git a/pkgs/development/compilers/hvm/default.nix b/pkgs/development/compilers/hvm/default.nix
index e314e52a0523..1d60a610729d 100644
--- a/pkgs/development/compilers/hvm/default.nix
+++ b/pkgs/development/compilers/hvm/default.nix
@@ -1,30 +1,33 @@
{ lib
, rustPlatform
, fetchCrate
-, pkg-config
-, openssl
, stdenv
-, Security
+, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "hvm";
- version = "0.1.89";
+ version = "1.0.0";
src = fetchCrate {
inherit pname version;
- sha256 = "sha256-xPF8HW4QFXLLjg2HO5Pl+uQ44XCdAHc6koVpVXxN6dE=";
+ sha256 = "sha256-nPkUGUcekZ2fvQgiVTNvt8vfQsNMyqsrkT2zqEfu/bE=";
};
- cargoSha256 = "sha256-dDSmiMwDbVDfStXamQvOMBBO5MiuDFhgzWPx0oYwzcM=";
+ cargoSha256 = "sha256-EaZTpKFZPfDlP/2XylhJHznvlah7VNw4snrKDmT7ecw=";
- nativeBuildInputs = [ pkg-config ];
+ 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
+ ];
- buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
-
- # memory allocation of 34359738368 bytes failed
+ # 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";