ocamlPackages.wasm: init at 0.13
wasm is an OCaml library to read and write Web Assembly (wasm) files and manipulate their AST.
This commit is contained in:
parent
90c9897ff6
commit
83d14b7b50
31
pkgs/development/ocaml-modules/wasm/default.nix
Normal file
31
pkgs/development/ocaml-modules/wasm/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
|
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||
then throw "wasm is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml${ocaml.version}-wasm-${version}";
|
||||
version = "0.13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "WebAssembly";
|
||||
repo = "spec";
|
||||
rev = "v${version}";
|
||||
sha256 = "0l67w1dmhgzrhmw3pw2w35h54imax0zdpa9yyqppzzbagxgn87kn";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild ];
|
||||
|
||||
makeFlags = [ "-C" "interpreter" ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
description = "An OCaml library to read and write Web Assembly (wasm) files and manipulate their AST";
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
@ -612,6 +612,8 @@ let
|
||||
|
||||
vg = callPackage ../development/ocaml-modules/vg { };
|
||||
|
||||
wasm = callPackage ../development/ocaml-modules/wasm { };
|
||||
|
||||
x509 = callPackage ../development/ocaml-modules/x509 { };
|
||||
|
||||
xmlm = callPackage ../development/ocaml-modules/xmlm { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user