Skip to content

Commit

Permalink
gnat-bootstrap: fix and enable strictDeps (NixOS#361717)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Dec 6, 2024
2 parents cc7d5fc + 3fcf454 commit d6b8125
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkgs/development/compilers/gnat-bootstrap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,13 @@ in {

nativeBuildInputs = [
dejagnu
expat
gmp
guile
libipt
mpfr
ncurses5
python3
readline
sourceHighlight
xz
zlib
] ++ lib.optionals stdenv.buildPlatform.isLinux [
autoPatchelfHook
Expand All @@ -72,6 +69,14 @@ in {
elfutils
];

buildInputs = [
expat
ncurses5
xz
];

strictDeps = true;

postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin) ''
substituteInPlace lib/gcc/${upstreamTriplet}/${gccVersion}/install-tools/mkheaders.conf \
--replace "SYSTEM_HEADER_DIR=\"/usr/include\"" "SYSTEM_HEADER_DIR=\"/include\""
Expand Down

0 comments on commit d6b8125

Please sign in to comment.