From f026efee20f7740cc0bc2d88296fcc4ca6cd460d Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 7 Jul 2023 21:55:55 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.gsl:=20disable=20for=20OCaml=20?= =?UTF-8?q?=E2=89=A5=205.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/gsl/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/gsl/default.nix b/pkgs/development/ocaml-modules/gsl/default.nix index 02a49fd71773..48dd8817a565 100644 --- a/pkgs/development/ocaml-modules/gsl/default.nix +++ b/pkgs/development/ocaml-modules/gsl/default.nix @@ -1,4 +1,7 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch, buildDunePackage, pkg-config, gsl, darwin, dune-configurator }: +{ lib, stdenv, ocaml, fetchFromGitHub, fetchpatch, buildDunePackage, pkg-config, gsl, darwin, dune-configurator }: + +lib.throwIf (lib.versionAtLeast ocaml.version "5.0") + "gsl is not available for OCaml ${ocaml.version}" buildDunePackage rec { pname = "gsl"; @@ -36,8 +39,6 @@ buildDunePackage rec { }) ]; - duneVersion = "3"; - nativeBuildInputs = [ pkg-config ]; buildInputs = [ dune-configurator gsl ]; propagatedBuildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ];