lol

ocamlPackages.gsl: disable for OCaml ≥ 5.0

authored by

Vincent Laporte and committed by
Vincent Laporte
f026efee a28f3028

+4 -3
+4 -3
pkgs/development/ocaml-modules/gsl/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, buildDunePackage, pkg-config, gsl, darwin, dune-configurator }: 2 3 buildDunePackage rec { 4 pname = "gsl"; ··· 35 sha256 = "sha256-bsIKkvj9W8oAYSvP6ZfbqSgt5fSirc780O08WBhVRmI="; 36 }) 37 ]; 38 - 39 - duneVersion = "3"; 40 41 nativeBuildInputs = [ pkg-config ]; 42 buildInputs = [ dune-configurator gsl ];
··· 1 + { lib, stdenv, ocaml, fetchFromGitHub, fetchpatch, buildDunePackage, pkg-config, gsl, darwin, dune-configurator }: 2 + 3 + lib.throwIf (lib.versionAtLeast ocaml.version "5.0") 4 + "gsl is not available for OCaml ${ocaml.version}" 5 6 buildDunePackage rec { 7 pname = "gsl"; ··· 38 sha256 = "sha256-bsIKkvj9W8oAYSvP6ZfbqSgt5fSirc780O08WBhVRmI="; 39 }) 40 ]; 41 42 nativeBuildInputs = [ pkg-config ]; 43 buildInputs = [ dune-configurator gsl ];