diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-01-15 10:30:44 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-01-15 10:30:44 +0000 |
commit | e0794be8a0d11e90461e5a9c85012a36b93ec976 (patch) | |
tree | efd9cbc55ea3322867bf601c4d536758a3dd5fcc /nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix | |
parent | 3538874082ded7647b1ccec0343c7c1e882cfef3 (diff) | |
parent | 1a57d96edd156958b12782e8c8b6a374142a7248 (diff) | |
download | nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.gz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.bz2 nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.lz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.xz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.zst nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.zip |
Merge commit '1a57d96edd156958b12782e8c8b6a374142a7248'
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix b/nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix index 23b38e469b4b..b7f5cb44818b 100644 --- a/nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix +++ b/nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix @@ -1,31 +1,31 @@ -{ stdenv, fetchFromGitHub, darwin, ocaml, findlib, dune, base, stdio, lapack, blas }: +{ stdenv, fetchurl, darwin, buildDunePackage, dune-configurator +, lapack, blas +}: -assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.05.0"; assert (!blas.isILP64) && (!lapack.isILP64); -stdenv.mkDerivation rec { - pname = "ocaml${ocaml.version}-lacaml"; - version = "11.0.6"; +buildDunePackage rec { + pname = "lacaml"; + version = "11.0.8"; - src = fetchFromGitHub { - owner = "mmottl"; - repo = "lacaml"; - rev = version; - sha256 = "1vn5441fg45d0ni9x87dhz2x4jrmvg3w7qk3vvcrd436snvh07g0"; + useDune2 = true; + + minimumOCamlVersion = "4.08"; + + src = fetchurl { + url = "https://github.com/mmottl/lacaml/releases/download/${version}/lacaml-${version}.tbz"; + sha256 = "1i47wqnd9iy6ndbi9zfahpb592gahp6im26rgpwch13vgzk3kifd"; }; - buildInputs = [ ocaml findlib dune base stdio ]; + buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ lapack blas ] ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ]; - inherit (dune) installPhase; - meta = with stdenv.lib; { - homepage = "http://mmottl.github.io/lacaml"; + homepage = "https://mmottl.github.io/lacaml"; description = "OCaml bindings for BLAS and LAPACK"; license = licenses.lgpl21Plus; - platforms = ocaml.meta.platforms or []; - maintainers = [ maintainers.rixed ]; + maintainers = [ maintainers.vbgl ]; }; } |