git.iko.soy/typeable/nixpkgs
on master help sign in
lacaml: init at 11.0.3
commit0206adc56602d30cac13c59d085f2be487b97457 authorCedric Cellier <rixed@happyleptic.org> dateWed 20 Mar 2019, 12:03 (8 years ago) parent2be90cc
2 files changed+32
pkgs/development/ocaml-modules/lacaml/default.nix+30 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/lacaml/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, darwin, ocaml, findlib, dune, base, stdio, liblapack, blas }:
2+
3+assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.05.0";
4+
5+stdenv.mkDerivation rec {
6+ pname = "ocaml${ocaml.version}-lacaml";
7+ version = "11.0.3";
8+
9+ src = fetchFromGitHub {
10+ owner = "mmottl";
11+ repo = "lacaml";
12+ rev = "${version}";
13+ sha256 = "1aflg07cc9ak9mg1cr0qr368c9s141glwlarl5nhalf6hhq7ibcb";
14+ };
15+
16+ buildInputs =
17+ [ ocaml findlib dune base stdio liblapack blas ] ++
18+ stdenv.lib.optionals stdenv.isDarwin
19+ [ darwin.apple_sdk.frameworks.Accelerate ];
20+
21+ inherit (dune) installPhase;
22+
23+ meta = with stdenv.lib; {
24+ homepage = http://mmottl.github.io/lacaml;
25+ description = "OCaml bindings for BLAS and LAPACK";
26+ license = licenses.lgpl21Plus;
27+ platforms = ocaml.meta.platforms or [];
28+ maintainers = [ maintainers.rixed ];
29+ };
30+}
pkgs/top-level/ocaml-packages.nix+2
@@ -381,6 +381,8 @@ let
381381
382382 labltk = callPackage ../development/ocaml-modules/labltk { };
383383
384+ lacaml = callPackage ../development/ocaml-modules/lacaml { };
385+
384386 lambdaTerm-1_6 = callPackage ../development/ocaml-modules/lambda-term/1.6.nix { lwt = lwt2; };
385387 lambdaTerm =
386388 if lib.versionOlder "4.02" ocaml.version