Files
nixpkgs/pkgs/development/ocaml-modules/wasm/default.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

43 lines
920 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
menhir,
odoc,
buildDunePackage,
}:
buildDunePackage rec {
pname = "wasm";
version = "2.0.2";
minimalOCamlVersion = "4.12";
src = fetchFromGitHub {
owner = "WebAssembly";
repo = "spec";
tag = "opam-${version}";
hash = "sha256-RbVGW6laC3trP6IhtA2tLrAYVbx0Oucox9FgoEvs6LQ=";
};
postUnpack = ''
cd "$sourceRoot/interpreter"
export sourceRoot=$PWD
'';
# x86_64-unknown-linux-musl-ld: -r and -pie may not be used together
hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
nativeBuildInputs = [
menhir
odoc
];
meta = {
description = "Library to read and write WebAssembly (Wasm) files and manipulate their AST";
mainProgram = "wasm";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://github.com/WebAssembly/spec/tree/main/interpreter";
};
}