gprbuild: prevent cross compiled gprbuild-boot being pulled in
Building a cross-compiled gprbuild-boot would obviously not succeed. This change is kind of academic since we don't really have a working Ada cross-compiler in nixpkgs, but helps verifying changes to the gnatPackages infrastructure.
This commit is contained in:
parent
92718905bb
commit
8c5a4cfa43
|
@ -54,7 +54,10 @@ stdenv.mkDerivation {
|
|||
# link gprconfig_kb db from gprbuild-boot into build dir,
|
||||
# the install process copies its contents to $out
|
||||
preInstall = ''
|
||||
ln -sf ${gprbuild-boot}/share/gprconfig share/gprconfig
|
||||
# Use PATH to discover spliced gprbuild-boot from buildPackages,
|
||||
# since path interpolation would give us gprbuild-boot from pkgsHostTarget
|
||||
gprbuild_boot="$(dirname "$(type -p gprbuild)")/.."
|
||||
ln -sf "$gprbuild_boot/share/gprconfig" share/gprconfig
|
||||
'';
|
||||
|
||||
# no need for the install script
|
||||
|
|
Loading…
Reference in New Issue
Block a user