10 rustPlatform.buildRustPackage rec {
16 pname = "cargo-wasi-src";
17 hash = "sha256-fmQ23BtcBUPNcgZgvNq85iqdY6WRUhqwAp4aIobqMIw=";
20 cargoHash = "sha256-yXtxznUp2gECq2CvRByiFzbTjYtWvTheDjGoynJWb+o=";
22 nativeBuildInputs = [ pkg-config ];
24 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
25 ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
27 # Checks need to be disabled here because the current test suite makes assumptions
28 # about the surrounding environment that aren't Nix friendly. See these lines for specifics:
29 # https://github.com/bytecodealliance/cargo-wasi/blob/0.1.28/tests/tests/support.rs#L13-L18
33 description = "Lightweight Cargo subcommand to build code for the wasm32-wasi target";
34 mainProgram = "cargo-wasi";
35 homepage = "https://bytecodealliance.github.io/cargo-wasi";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ lucperkins ];