nixpkgs-suyu/pkgs/development/ocaml-modules/ocplib-simplex/default.nix
sternenseemann 4e42cac49d ocamlPackages: stdenv.lib → lib
This change was produced by searching for remaining occurrences of
stdenv.lib and replacing them manually.

Reference #108938.
2021-01-12 16:33:18 +01:00

32 lines
884 B
Nix

{ stdenv, lib, fetchFromGitHub, autoreconfHook, ocaml, findlib }:
let
pname = "ocplib-simplex";
version = "0.4";
in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "OCamlPro-Iguernlala";
repo = pname;
rev = "v${version}";
sha256 = "09niyidrjzrj8g1qwx4wgsdf5m6cwrnzg7zsgala36jliic4di60";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ocaml findlib ];
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
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 = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
};
}