gnat-bootstrap: gate elfutils on package availability rather than isLinux

This commit is contained in:
Philip Taron 2024-04-01 09:00:04 -07:00 committed by Alyssa Ross
parent 6fe5877a49
commit 1c242513a0
1 changed files with 2 additions and 1 deletions

View File

@ -67,8 +67,9 @@ in {
zlib
] ++ lib.optionals stdenv.buildPlatform.isLinux [
autoPatchelfHook
elfutils
glibc
] ++ lib.optionals (lib.meta.availableOn stdenv.buildPlatform elfutils) [
elfutils
];
postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin) ''