yaup: fix broken darwin build (#460081)

This commit is contained in:
Aleksana
2025-11-12 14:22:31 +00:00
committed by GitHub
+6 -2
View File
@@ -30,6 +30,12 @@ stdenv.mkDerivation {
})
];
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
# Replace GNU ld's --export-dynamic with macOS linker equivalent
substituteInPlace src/Makefile.in \
--replace-fail '-Wl,--export-dynamic' '-Wl,-export_dynamic'
'';
nativeBuildInputs = [
intltool
pkg-config
@@ -52,8 +58,6 @@ stdenv.mkDerivation {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
# ld: unknown option: --export-dynamic
broken = stdenv.hostPlatform.isDarwin;
mainProgram = "yaup";
};
}