about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocplib-simplex/default.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-11-22 21:07:09 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2016-11-23 09:59:10 +0100
commit97a496a472ded2ca22a5a1bdf91752cd3e1b8df0 (patch)
treecb8bdc5030e70554fc7c1257a18c3f18a6b0b615 /pkgs/development/ocaml-modules/ocplib-simplex/default.nix
parentb75e13b7e66026c8d0707c5e1d1290ce90f306d5 (diff)
ocamlPackages.ocplib-simplex: init at 0.3
ocplib-simplex is a (fully) functional OCaml implementation of the simplex algorithm for solving systems of linear inequalities.

homepage: https://github.com/OCamlPro-Iguernlala/ocplib-simplex
Diffstat (limited to 'pkgs/development/ocaml-modules/ocplib-simplex/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/ocplib-simplex/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocplib-simplex/default.nix b/pkgs/development/ocaml-modules/ocplib-simplex/default.nix
new file mode 100644
index 0000000000000..4ce3ac6dff301
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocplib-simplex/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, ocaml, findlib }:
+
+let
+  pname = "ocplib-simplex";
+  version = "0.3";
+in
+
+stdenv.mkDerivation {
+  name = "ocaml${ocaml.version}-${pname}-${version}";
+
+  src = fetchFromGitHub {
+    owner = "OCamlPro-Iguernlala";
+    repo = pname;
+    rev = version;
+    sha256 = "1fmz38w2cj9fny4adqqyil59dvndqkr59s7wk2gqs47r72b6sisa";
+  };
+
+  buildInputs = [ autoreconfHook ocaml findlib ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    description = "An OCaml library implementing a simplex algorithm, in a functional style, for solving systems of linear inequalities";
+    homepage = https://github.com/OCamlPro-Iguernlala/ocplib-simplex;
+    inherit (ocaml.meta) platforms;
+    license = stdenv.lib.licenses.lgpl21;
+    maintainers = [ stdenv.lib.maintainers.vbgl ];
+  };
+}