Files
nixpkgs/pkgs/by-name/wa/wasm-pack/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

45 lines
919 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
cmake,
pkg-config,
zstd,
}:
rustPlatform.buildRustPackage rec {
pname = "wasm-pack";
version = "0.13.1";
src = fetchFromGitHub {
owner = "rustwasm";
repo = "wasm-pack";
tag = "v${version}";
hash = "sha256-CN1LcLX7ag+in9sosT2NYVKfhDLGv2m3zHOk2T4MFYc=";
};
cargoHash = "sha256-nYWvk2v+4IAk/y7fg+Z/nMH+Ml+J5k5ER8uudCQOMB8=";
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [ zstd ];
# Most tests rely on external resources and build artifacts.
# Disabling check here to work with build sandboxing.
doCheck = false;
meta = with lib; {
description = "Utility that builds rust-generated WebAssembly package";
mainProgram = "wasm-pack";
homepage = "https://github.com/rustwasm/wasm-pack";
license = with licenses; [
asl20 # or
mit
];
maintainers = [ maintainers.dhkl ];
};
}