11 rustPlatform.buildRustPackage rec {
12 pname = "cargo-component";
15 src = fetchFromGitHub {
16 owner = "bytecodealliance";
17 repo = "cargo-component";
19 hash = "sha256-HiDwFWEzzCmwlEKsVmKREtn5OfAziC+irgeh66fRWIQ=";
22 cargoHash = "sha256-AtOZGYH0ya5mza3QFTfaXvw9tcFDGuz72JUhfTdUml8=";
32 ++ lib.optionals stdenv.hostPlatform.isDarwin [
33 darwin.apple_sdk.frameworks.SystemConfiguration
36 # requires the wasm32-wasi target
40 description = "Cargo subcommand for creating WebAssembly components based on the component model proposal";
41 homepage = "https://github.com/bytecodealliance/cargo-component";
42 changelog = "https://github.com/bytecodealliance/cargo-component/releases/tag/${src.rev}";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ figsoda ];
45 mainProgram = "cargo-component";