diff options
author | Cedric Cellier <rixed@happyleptic.org> | 2019-03-20 12:03:38 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2019-03-24 19:37:47 +0100 |
commit | 0206adc56602d30cac13c59d085f2be487b97457 (patch) | |
tree | 2bd38a3b8edee105093922fedfaeb2f727006f07 /pkgs/development/ocaml-modules/lacaml | |
parent | 2be90ccb4faa99a2a8d71e21fa7090a3bc89c263 (diff) | |
download | nixpkgs-0206adc56602d30cac13c59d085f2be487b97457.tar nixpkgs-0206adc56602d30cac13c59d085f2be487b97457.tar.gz nixpkgs-0206adc56602d30cac13c59d085f2be487b97457.tar.bz2 nixpkgs-0206adc56602d30cac13c59d085f2be487b97457.tar.lz nixpkgs-0206adc56602d30cac13c59d085f2be487b97457.tar.xz nixpkgs-0206adc56602d30cac13c59d085f2be487b97457.tar.zst nixpkgs-0206adc56602d30cac13c59d085f2be487b97457.zip |
lacaml: init at 11.0.3
Diffstat (limited to 'pkgs/development/ocaml-modules/lacaml')
-rw-r--r-- | pkgs/development/ocaml-modules/lacaml/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lacaml/default.nix b/pkgs/development/ocaml-modules/lacaml/default.nix new file mode 100644 index 00000000000..b316540e3d0 --- /dev/null +++ b/pkgs/development/ocaml-modules/lacaml/default.nix @@ -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 ]; + }; +} |