ocamlPackages.wasm: 1.1.1 → 2.0.0

This commit is contained in:
Vincent Laporte 2022-06-02 09:33:44 +02:00 committed by Vincent Laporte
parent acbfbd0d86
commit 3a5d3c73c7

View File

@ -1,19 +1,18 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
if lib.versionOlder ocaml.version "4.03"
|| lib.versionOlder "4.13" ocaml.version
if lib.versionOlder ocaml.version "4.08"
then throw "wasm is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-wasm";
version = "1.1.1";
version = "2.0.0";
src = fetchFromGitHub {
owner = "WebAssembly";
repo = "spec";
rev = "opam-${version}";
sha256 = "1kp72yv4k176i94np0m09g10cviqp2pnpm7jmiq6ik7fmmbknk7c";
sha256 = "sha256:09s0v79x0ymzcp2114zkm3phxavdfnkkq67qz1ndnknbkziwqf3v";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild ];