Merge pull request #232776 from trofi/isl_0_24-zhf

isl_0_24: pull CC_FOR_BUILD
This commit is contained in:
Weijia Wang 2023-05-20 02:55:59 +03:00 committed by GitHub
commit 191f1a50b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,12 @@
, patches ? []
}:
{ lib, stdenv, fetchurl, gmp, autoreconfHook
{ lib
, stdenv
, fetchurl
, gmp
, autoreconfHook
, buildPackages
}:
stdenv.mkDerivation {
@ -19,6 +24,7 @@ stdenv.mkDerivation {
inherit patches;
strictDeps = true;
depsBuildBuild = lib.optionals (lib.versionAtLeast version "0.24") [ buildPackages.stdenv.cc ];
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [ autoreconfHook ];
buildInputs = [ gmp ];