gnatprove: avoid stdenv SDK

Use stdenvNoCC so GNATprove uses the SDK provided by GNAT.
Add clang as ocamlc invokes it during compilation.
This commit is contained in:
zinzilulo
2026-08-21 20:25:59 +08:00
parent b229e0e758
commit d1c19500f2

View File

@@ -1,7 +1,8 @@
{
stdenv,
stdenvNoCC,
lib,
fetchFromGitHub,
clang,
gnat,
gnatcoll-core,
gprbuild,
@@ -99,7 +100,7 @@ let
or (throw "GNATprove depends on a specific GNAT version and can't be built using GNAT ${gnat_version}.");
in
stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
pname = "gnatprove";
version = "fsf-${gnat_version}_${thisSpark.commit_date}";
@@ -117,7 +118,8 @@ stdenv.mkDerivation {
ocaml
findlib
menhir
]);
])
++ lib.optional stdenvNoCC.targetPlatform.isDarwin clang;
buildInputs = [
gnatcoll-core