evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ca / cargo-component / package.nix
blob66f9356a6e209a7a0d7d0f730e4cb15b1365cf45
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , stdenv
7 , darwin
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "cargo-component";
12   version = "0.17.0";
14   src = fetchFromGitHub {
15     owner = "bytecodealliance";
16     repo = "cargo-component";
17     rev = "v${version}";
18     hash = "sha256-j1gQgtse3DQWyR4D5BzQ0aAEGhNKoFT0ACRBVOqDdFE=";
19   };
21   cargoHash = "sha256-1YDnqopghS6MpQ2h8e5kQj0bxKAC2B6XzVeC60+M3MM=";
23   nativeBuildInputs = [
24     pkg-config
25   ];
27   buildInputs = [
28     openssl
29   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
30     darwin.apple_sdk.frameworks.SystemConfiguration
31   ];
33   # requires the wasm32-wasi target
34   doCheck = false;
36   meta = with lib; {
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";
43   };