summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/oasis
diff options
context:
space:
mode:
authorMarco Maggesi <maggesi@math.unifi.it>2014-01-31 06:44:42 +0100
committerMarco Maggesi <maggesi@math.unifi.it>2014-01-31 12:01:32 +0100
commitf3a49abf089de509bbfc5f535d01d0053bc54046 (patch)
tree02d1b0ccda89ea1c6b509fdedd5a12ceea1b7cd1 /pkgs/development/tools/ocaml/oasis
parentec1b40be872c4a7ea06cfb354b6462bf75d72c96 (diff)
downloadnixpkgs-f3a49abf089de509bbfc5f535d01d0053bc54046.tar
nixpkgs-f3a49abf089de509bbfc5f535d01d0053bc54046.tar.gz
nixpkgs-f3a49abf089de509bbfc5f535d01d0053bc54046.tar.bz2
nixpkgs-f3a49abf089de509bbfc5f535d01d0053bc54046.tar.lz
nixpkgs-f3a49abf089de509bbfc5f535d01d0053bc54046.tar.xz
nixpkgs-f3a49abf089de509bbfc5f535d01d0053bc54046.tar.zst
nixpkgs-f3a49abf089de509bbfc5f535d01d0053bc54046.zip
Add OCaml Oasis
OCaml Oasis is a configure/build/install system for OCaml proget (like
Cabal for Haskell).

This commit also add a few small dependencies that where missing

  -  OCaml Data Notation (odn)
  -  ocamlify
  -  ocamlmod
Diffstat (limited to 'pkgs/development/tools/ocaml/oasis')
-rw-r--r--pkgs/development/tools/ocaml/oasis/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/oasis/default.nix b/pkgs/development/tools/ocaml/oasis/default.nix
new file mode 100644
index 00000000000..3ab935705a2
--- /dev/null
+++ b/pkgs/development/tools/ocaml/oasis/default.nix
@@ -0,0 +1,32 @@
+{stdenv, fetchurl, ocaml, findlib, ocaml_data_notation, ocaml_typeconv,
+ ocamlmod, ocamlify, ounit, expect}:
+
+stdenv.mkDerivation {
+  name = "ocaml-oasis-0.4.1";
+
+  src = fetchurl {
+    url = http://forge.ocamlcore.org/frs/download.php/1355/oasis-0.4.1.tar.gz;
+    sha256 = "1lsnw9f1jh6106kphxg40qp0sia6cbkbb9ahs5y6ifnfkmllkjhj";
+  };
+
+  createFindlibDestdir = true;
+
+  buildInputs =
+    [
+      ocaml findlib ocaml_data_notation ocaml_typeconv ocamlmod ocamlify ounit
+    ];
+
+  configurePhase = "ocaml setup.ml -configure --prefix $out";
+  buildPhase     = "ocaml setup.ml -build";
+  installPhase   = "ocaml setup.ml -install";
+
+  meta = {
+    homepage = http://oasis.forge.ocamlcore.org/;
+    description = "Configure, build and install system for OCaml projects";
+    license = stdenv.lib.licenses.lgpl21;
+    platforms = ocaml.meta.platforms;
+    maintainers = with stdenv.lib.maintainers; [
+      z77z
+    ];
+  };
+}