Files
nixpkgs/pkgs/by-name/wi/wizer/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

55 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
testers,
wizer,
}:
rustPlatform.buildRustPackage rec {
pname = "wizer";
version = "10.0.0";
# the crate does not contain files which are necessary for the tests
# see https://github.com/bytecodealliance/wizer/commit/3a95e27ce42f1fdaef07b52988e4699eaa221e04
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = "wizer";
tag = "v${version}";
hash = "sha256-Vo6oD0UXGm4QtA3S5Qsc/DDfyfj9gJj01nnXXHw/+bM=";
};
cargoHash = "sha256-WocaIib0IXlAWGVyRygOmHl1LBkrahbcCIHffRMX+J0=";
cargoBuildFlags = [
"--bin"
pname
];
buildFeatures = [
"env_logger"
"structopt"
];
# Setting $HOME to a temporary directory is necessary to prevent checks from failing, as
# the test suite creates a cache directory at $HOME/Library/Caches/BytecodeAlliance.wasmtime.
preCheck = ''
export HOME=$(mktemp -d)
'';
passthru.tests = {
version = testers.testVersion { package = wizer; };
};
meta = with lib; {
description = "WebAssembly pre-initializer";
mainProgram = "wizer";
homepage = "https://github.com/bytecodealliance/wizer";
license = licenses.asl20;
maintainers = with maintainers; [
lucperkins
amesgen
];
};
}