lacaml: init at 11.0.3

This commit is contained in:
Cedric Cellier 2019-03-20 12:03:38 +01:00 committed by Vincent Laporte
parent 2be90ccb4f
commit 0206adc566
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, darwin, ocaml, findlib, dune, base, stdio, liblapack, blas }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.05.0";
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-lacaml";
version = "11.0.3";
src = fetchFromGitHub {
owner = "mmottl";
repo = "lacaml";
rev = "${version}";
sha256 = "1aflg07cc9ak9mg1cr0qr368c9s141glwlarl5nhalf6hhq7ibcb";
};
buildInputs =
[ ocaml findlib dune base stdio liblapack blas ] ++
stdenv.lib.optionals stdenv.isDarwin
[ darwin.apple_sdk.frameworks.Accelerate ];
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = http://mmottl.github.io/lacaml;
description = "OCaml bindings for BLAS and LAPACK";
license = licenses.lgpl21Plus;
platforms = ocaml.meta.platforms or [];
maintainers = [ maintainers.rixed ];
};
}

View File

@ -381,6 +381,8 @@ let
labltk = callPackage ../development/ocaml-modules/labltk { };
lacaml = callPackage ../development/ocaml-modules/lacaml { };
lambdaTerm-1_6 = callPackage ../development/ocaml-modules/lambda-term/1.6.nix { lwt = lwt2; };
lambdaTerm =
if lib.versionOlder "4.02" ocaml.version