@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook, ocaml, findlib }:
2+
3+let
4+ pname = "ocplib-simplex";
5+ version = "0.3";
6+in
7+
8+stdenv.mkDerivation {
9+ name = "ocaml${ocaml.version}-${pname}-${version}";
10+
11+ src = fetchFromGitHub {
12+ owner = "OCamlPro-Iguernlala";
13+ repo = pname;
14+ rev = version;
15+ sha256 = "1fmz38w2cj9fny4adqqyil59dvndqkr59s7wk2gqs47r72b6sisa";
16+ };
17+
18+ buildInputs = [ autoreconfHook ocaml findlib ];
19+
20+ createFindlibDestdir = true;
21+
22+ meta = {
23+ description = "An OCaml library implementing a simplex algorithm, in a functional style, for solving systems of linear inequalities";
24+ homepage = https://github.com/OCamlPro-Iguernlala/ocplib-simplex;
25+ inherit (ocaml.meta) platforms;
26+ license = stdenv.lib.licenses.lgpl21;
27+ maintainers = [ stdenv.lib.maintainers.vbgl ];
28+ };
29+}