10 rustPlatform.buildRustPackage rec {
11 pname = "cargo-component";
14 src = fetchFromGitHub {
15 owner = "bytecodealliance";
16 repo = "cargo-component";
18 hash = "sha256-XUzXqzgAIZKWNpfyBvkYX/g1R8JcIJlVTUb2N4zL96w=";
21 cargoHash = "sha256-U2ocN9UENms0KZQuEu75jmxphyNGz5OYCLrh6vhvKiI=";
29 ] ++ lib.optionals stdenv.isDarwin [
30 darwin.apple_sdk.frameworks.SystemConfiguration
33 # requires the wasm32-wasi target
37 description = "A 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";