ocamlPackages.gsl: disable for OCaml ≥ 5.0
This commit is contained in:
parent
a28f30282f
commit
f026efee20
1 changed files with 4 additions and 3 deletions
|
@ -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 {
|
buildDunePackage rec {
|
||||||
pname = "gsl";
|
pname = "gsl";
|
||||||
|
@ -36,8 +39,6 @@ buildDunePackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
duneVersion = "3";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ dune-configurator gsl ];
|
buildInputs = [ dune-configurator gsl ];
|
||||||
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ];
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ];
|
||||||
|
|
Loading…
Reference in a new issue