summary refs log tree commit diff
diff options
context:
space:
mode:
authorLéo Gaspard <leo@gaspard.io>2018-08-13 11:49:00 +0900
committerVincent Laporte <vbgl@users.noreply.github.com>2018-08-13 15:36:44 +0000
commit9b46b273f91d64123d40181aceb3386cc46c487b (patch)
tree1c4604609bab55e186a3c3f749169a640ab8bbe0
parent55fa15642ffd67c022805a0682da9e9397577a56 (diff)
downloadnixlib-9b46b273f91d64123d40181aceb3386cc46c487b.tar
nixlib-9b46b273f91d64123d40181aceb3386cc46c487b.tar.gz
nixlib-9b46b273f91d64123d40181aceb3386cc46c487b.tar.bz2
nixlib-9b46b273f91d64123d40181aceb3386cc46c487b.tar.lz
nixlib-9b46b273f91d64123d40181aceb3386cc46c487b.tar.xz
nixlib-9b46b273f91d64123d40181aceb3386cc46c487b.tar.zst
nixlib-9b46b273f91d64123d40181aceb3386cc46c487b.zip
ocamlModules.wasm: add wasm binary
-rw-r--r--pkgs/development/ocaml-modules/wasm/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/wasm/default.nix b/pkgs/development/ocaml-modules/wasm/default.nix
index 5fe0e2abc195..e10a67a50a0d 100644
--- a/pkgs/development/ocaml-modules/wasm/default.nix
+++ b/pkgs/development/ocaml-modules/wasm/default.nix
@@ -21,11 +21,16 @@ stdenv.mkDerivation rec {
 
   createFindlibDestdir = true;
 
+  postInstall = ''
+    mkdir $out/bin
+    cp -L interpreter/wasm $out/bin
+  '';
+
   meta = {
-    description = "An OCaml library to read and write Web Assembly (wasm) files and manipulate their AST";
+    description = "An executable and OCaml library to run, 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;
+    homepage = https://github.com/WebAssembly/spec/tree/master/interpreter;
     inherit (ocaml.meta) platforms;
   };
 }