cabextract: fix musl build (#482205)

This commit is contained in:
Arne Keller
2026-07-13 11:19:34 +00:00
committed by GitHub
+5
View File
@@ -13,6 +13,11 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-tVRtsRVeTHGP89SyeFc2BPMN1kw8W/1GV80Im4I6OsY=";
};
# Remove vendored getopt.h in favor of stdenv's to fix non-gnu builds.
postPatch = ''
rm getopt.h
'';
# Let's assume that fnmatch works for cross-compilation, otherwise it gives an error:
# undefined reference to `rpl_fnmatch'.
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [