ocamlPackages.wasm: 2.0.0 → 2.0.1
This commit is contained in:
parent
8c9caf3387
commit
4d5e3e4a5b
@ -1,19 +1,18 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
|
||||||
|
|
||||||
if lib.versionOlder ocaml.version "4.08"
|
if lib.versionOlder ocaml.version "4.08"
|
||||||
|| lib.versionAtLeast ocaml.version "5.0"
|
|
||||||
then throw "wasm is not available for OCaml ${ocaml.version}"
|
then throw "wasm is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ocaml${ocaml.version}-wasm";
|
pname = "ocaml${ocaml.version}-wasm";
|
||||||
version = "2.0.0";
|
version = "2.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "WebAssembly";
|
owner = "WebAssembly";
|
||||||
repo = "spec";
|
repo = "spec";
|
||||||
rev = "opam-${version}";
|
rev = "opam-${version}";
|
||||||
sha256 = "sha256:09s0v79x0ymzcp2114zkm3phxavdfnkkq67qz1ndnknbkziwqf3v";
|
hash = "sha256-5eo8MIui2GxRS5X9az0NlLGZfxi5KGsTI/EaP6m/zts=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
||||||
|
Loading…
Reference in New Issue
Block a user