Files
nixpkgs/pkgs/by-name/ca/cargo-wasi/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

39 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchCrate,
pkg-config,
stdenv,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-wasi";
version = "0.1.28";
src = fetchCrate {
inherit version;
pname = "cargo-wasi-src";
hash = "sha256-fmQ23BtcBUPNcgZgvNq85iqdY6WRUhqwAp4aIobqMIw=";
};
cargoHash = "sha256-GTpFgoKtAH06xBJ5X6w37ApTVjBLX7S4asWOB4/mN4g=";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
# Checks need to be disabled here because the current test suite makes assumptions
# about the surrounding environment that aren't Nix friendly. See these lines for specifics:
# https://github.com/bytecodealliance/cargo-wasi/blob/0.1.28/tests/tests/support.rs#L13-L18
doCheck = false;
meta = with lib; {
description = "Lightweight Cargo subcommand to build code for the wasm32-wasi target";
mainProgram = "cargo-wasi";
homepage = "https://bytecodealliance.github.io/cargo-wasi";
license = licenses.asl20;
maintainers = with maintainers; [ lucperkins ];
};
}