nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 30 lines 718 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchCrate, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "hvm"; 9 version = "2.0.22"; 10 11 src = fetchCrate { 12 inherit pname version; 13 hash = "sha256-AD8mv47m4E6H8BVkxTExyhrR7VEnuB/KxnRl2puPnX4="; 14 }; 15 16 # Insert empty line in expected output of rust panic in a test 17 postPatch = '' 18 sed -i '6G' tests/snapshots/run__file@empty.hvm.snap 19 ''; 20 21 cargoHash = "sha256-nLcT+o6xrxPmQqK7FQpCqTlxOOUA1FzqRGQIypcq4fo="; 22 23 meta = with lib; { 24 description = "Massively parallel, optimal functional runtime in Rust"; 25 mainProgram = "hvm"; 26 homepage = "https://github.com/higherorderco/hvm"; 27 license = licenses.asl20; 28 maintainers = with maintainers; [ figsoda ]; 29 }; 30}