Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, autoreconfHook, ocaml, findlib }:
2
3let
4 pname = "ocplib-simplex";
5 version = "0.4";
6in
7
8stdenv.mkDerivation {
9 name = "ocaml${ocaml.version}-${pname}-${version}";
10
11 src = fetchFromGitHub {
12 owner = "OCamlPro-Iguernlala";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "09niyidrjzrj8g1qwx4wgsdf5m6cwrnzg7zsgala36jliic4di60";
16 };
17
18 nativeBuildInputs = [ autoreconfHook ocaml findlib ];
19
20 strictDeps = true;
21
22 installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
23
24 createFindlibDestdir = true;
25
26 meta = {
27 description = "An OCaml library implementing a simplex algorithm, in a functional style, for solving systems of linear inequalities";
28 homepage = "https://github.com/OCamlPro-Iguernlala/ocplib-simplex";
29 inherit (ocaml.meta) platforms;
30 license = lib.licenses.lgpl21;
31 maintainers = [ lib.maintainers.vbgl ];
32 };
33}