lol
at 23.11-beta 33 lines 872 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, rustPlatform 5, darwin 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "wasm-pack"; 10 version = "0.12.1"; 11 12 src = fetchFromGitHub { 13 owner = "rustwasm"; 14 repo = "wasm-pack"; 15 rev = "refs/tags/v${version}"; 16 hash = "sha256-L4mCgUPG4cgTUpCoaIUOTONBOggXn5vMyPKj48B3MMk="; 17 }; 18 19 cargoHash = "sha256-mqQRQXaUW6mreE7UUEA0zhhaaGGKLRUngH9QLxcaIdY="; 20 21 buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; 22 23 # Most tests rely on external resources and build artifacts. 24 # Disabling check here to work with build sandboxing. 25 doCheck = false; 26 27 meta = with lib; { 28 description = "A utility that builds rust-generated WebAssembly package"; 29 homepage = "https://github.com/rustwasm/wasm-pack"; 30 license = with licenses; [ asl20 /* or */ mit ]; 31 maintainers = [ maintainers.dhkl ]; 32 }; 33}