nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / ca / cargo-component / package.nix
blob49b1ac6770c9bfd4e244445680105e4b9f956b44
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   openssl,
7   stdenv,
8   darwin,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "cargo-component";
13   version = "0.19.0";
15   src = fetchFromGitHub {
16     owner = "bytecodealliance";
17     repo = "cargo-component";
18     rev = "v${version}";
19     hash = "sha256-HiDwFWEzzCmwlEKsVmKREtn5OfAziC+irgeh66fRWIQ=";
20   };
22   cargoHash = "sha256-AtOZGYH0ya5mza3QFTfaXvw9tcFDGuz72JUhfTdUml8=";
24   nativeBuildInputs = [
25     pkg-config
26   ];
28   buildInputs =
29     [
30       openssl
31     ]
32     ++ lib.optionals stdenv.hostPlatform.isDarwin [
33       darwin.apple_sdk.frameworks.SystemConfiguration
34     ];
36   # requires the wasm32-wasi target
37   doCheck = false;
39   meta = with lib; {
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";
46   };