From dd704b8b204d0d4849cdea101acfd90e77010193 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 26 Nov 2025 05:38:21 +0100 Subject: [PATCH] ocamlPackages.lacaml: small cleaning --- .../ocaml-modules/lacaml/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkgs/development/ocaml-modules/lacaml/default.nix b/pkgs/development/ocaml-modules/lacaml/default.nix index d82525956943..ed777f9df77e 100644 --- a/pkgs/development/ocaml-modules/lacaml/default.nix +++ b/pkgs/development/ocaml-modules/lacaml/default.nix @@ -9,17 +9,13 @@ assert (!blas.isILP64) && (!lapack.isILP64); -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lacaml"; version = "11.1.1"; - useDune2 = true; - - minimalOCamlVersion = "4.08"; - src = fetchurl { - url = "https://github.com/mmottl/lacaml/releases/download/${version}/lacaml-${version}.tbz"; - sha256 = "sha256-NEs7A/lfA+8AE6k19EPW02e1pseDE7HobGSB/ZwLcoc="; + url = "https://github.com/mmottl/lacaml/releases/download/${finalAttrs.version}/lacaml-${finalAttrs.version}.tbz"; + hash = "sha256-NEs7A/lfA+8AE6k19EPW02e1pseDE7HobGSB/ZwLcoc="; }; buildInputs = [ dune-configurator ]; @@ -28,10 +24,10 @@ buildDunePackage rec { blas ]; - meta = with lib; { + meta = { homepage = "https://mmottl.github.io/lacaml"; description = "OCaml bindings for BLAS and LAPACK"; - license = licenses.lgpl21Plus; - maintainers = [ maintainers.vbgl ]; + license = lib.licenses.lgpl21Plus; + maintainers = [ lib.maintainers.vbgl ]; }; -} +})