mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
34 lines
885 B
Nix
34 lines
885 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 ocaml findlib ];
|
|
|
|
strictDeps = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|