Merge pull request #245307 from vbgl/ocaml-wasm-2.0.1

ocamlPackages.wasm: 2.0.0 → 2.0.1
This commit is contained in:
Nick Cao 2023-07-25 18:46:31 -06:00 committed by GitHub
commit 6a971b6849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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