2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, ocaml, findlib }:
|
2016-11-22 20:07:09 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "ocplib-simplex";
|
2018-10-10 19:03:45 +00: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 19:03:45 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09niyidrjzrj8g1qwx4wgsdf5m6cwrnzg7zsgala36jliic4di60";
|
2016-11-22 20:07:09 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00: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 19:03:45 +00: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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/OCamlPro-Iguernlala/ocplib-simplex";
|
2016-11-22 20:07:09 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2016-11-22 20:07:09 +00:00
|
|
|
};
|
|
|
|
}
|