gildas: clean up apple_sdk stubs

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
Ihar Hrachyshka 2025-04-17 21:48:53 -04:00
parent a5cd73e594
commit a8fc944dd0

View File

@ -12,7 +12,6 @@
perl,
groff,
which,
darwin,
ncurses,
}:
@ -49,17 +48,13 @@ stdenv.mkDerivation rec {
which
];
buildInputs =
[
gtk2-x11
lesstif
cfitsio
python3Env
ncurses
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks; [ CoreFoundation ]
);
buildInputs = [
gtk2-x11
lesstif
cfitsio
python3Env
ncurses
];
patches =
[ ./wrapper.patch ]
@ -73,10 +68,6 @@ stdenv.mkDerivation rec {
# Workaround for https://github.com/NixOS/nixpkgs/issues/304528
env.GAG_CPP = lib.optionalString stdenv.hostPlatform.isDarwin "${gfortran.outPath}/bin/cpp";
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks"
);
configurePhase = ''
substituteInPlace admin/wrapper.sh --replace '%%OUT%%' $out
substituteInPlace admin/wrapper.sh --replace '%%PYTHONHOME%%' ${python3Env}