Merge pull request #210587 from figsoda/hvm

hvm: 0.1.89 -> 1.0.0
This commit is contained in:
figsoda 2023-01-14 18:28:49 -05:00 committed by GitHub
commit 1e47b50d85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 13 deletions

View file

@ -1,30 +1,33 @@
{ lib { lib
, rustPlatform , rustPlatform
, fetchCrate , fetchCrate
, pkg-config
, openssl
, stdenv , stdenv
, Security , darwin
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "hvm"; pname = "hvm";
version = "0.1.89"; version = "1.0.0";
src = fetchCrate { src = fetchCrate {
inherit pname version; 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; # tests are broken
# memory allocation of 34359738368 bytes failed
doCheck = false; doCheck = false;
# enable nightly features
RUSTC_BOOTSTRAP = true;
meta = with lib; { meta = with lib; {
description = "A pure functional compile target that is lazy, non-garbage-collected, and parallel"; description = "A pure functional compile target that is lazy, non-garbage-collected, and parallel";
homepage = "https://github.com/kindelia/hvm"; homepage = "https://github.com/kindelia/hvm";

View file

@ -14753,9 +14753,7 @@ with pkgs;
gwt240 = callPackage ../development/compilers/gwt/2.4.0.nix { }; gwt240 = callPackage ../development/compilers/gwt/2.4.0.nix { };
hvm = callPackage ../development/compilers/hvm { hvm = callPackage ../development/compilers/hvm { };
inherit (darwin.apple_sdk.frameworks) Security;
};
iay = callPackage ../tools/misc/iay { iay = callPackage ../tools/misc/iay {
inherit (darwin.apple_sdk.frameworks) AppKit Security Foundation Cocoa; inherit (darwin.apple_sdk.frameworks) AppKit Security Foundation Cocoa;