1{ lib
2, rustPlatform
3, fetchCrate
4, pkg-config
5, openssl
6, stdenv
7, Security
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "hvm";
12 version = "0.1.89";
13
14 src = fetchCrate {
15 inherit pname version;
16 sha256 = "sha256-xPF8HW4QFXLLjg2HO5Pl+uQ44XCdAHc6koVpVXxN6dE=";
17 };
18
19 cargoSha256 = "sha256-dDSmiMwDbVDfStXamQvOMBBO5MiuDFhgzWPx0oYwzcM=";
20
21 nativeBuildInputs = [ pkg-config ];
22
23 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
24
25 # memory allocation of 34359738368 bytes failed
26 doCheck = false;
27
28 meta = with lib; {
29 description = "A pure functional compile target that is lazy, non-garbage-collected, and parallel";
30 homepage = "https://github.com/kindelia/hvm";
31 license = licenses.mit;
32 maintainers = with maintainers; [ figsoda ];
33 };
34}