2016-11-22 20:07:09 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, ocaml, findlib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "ocplib-simplex";
|
2018-10-10 20:03:45 +01:00
|
|
|
version = "0.4";
|
2016-11-22 20:07:09 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro-Iguernlala";
|
|
|
|
repo = pname;
|
2018-10-10 20:03:45 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09niyidrjzrj8g1qwx4wgsdf5m6cwrnzg7zsgala36jliic4di60";
|
2016-11-22 20:07:09 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ocaml findlib ];
|
2016-11-22 20:07:09 +00:00
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
2018-10-10 20:03:45 +01:00
|
|
|
|
2016-11-22 20:07:09 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An OCaml library implementing a simplex algorithm, in a functional style, for solving systems of linear inequalities";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/OCamlPro-Iguernlala/ocplib-simplex";
|
2016-11-22 20:07:09 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|