10 rustPlatform.buildRustPackage rec {
11 pname = "cargo-component";
14 src = fetchFromGitHub {
15 owner = "bytecodealliance";
16 repo = "cargo-component";
18 hash = "sha256-j1gQgtse3DQWyR4D5BzQ0aAEGhNKoFT0ACRBVOqDdFE=";
21 cargoHash = "sha256-1YDnqopghS6MpQ2h8e5kQj0bxKAC2B6XzVeC60+M3MM=";
29 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
30 darwin.apple_sdk.frameworks.SystemConfiguration
33 # requires the wasm32-wasi target
37 description = "Cargo subcommand for creating WebAssembly components based on the component model proposal";
38 homepage = "https://github.com/bytecodealliance/cargo-component";
39 changelog = "https://github.com/bytecodealliance/cargo-component/releases/tag/${src.rev}";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ figsoda ];
42 mainProgram = "cargo-component";