miniupnpd: Fix cross compilation (#451531)

This commit is contained in:
Will Fancher
2025-10-24 23:45:24 +00:00
committed by GitHub
@@ -4,6 +4,7 @@
fetchurl,
iptables-legacy,
libuuid,
linuxHeaders,
openssl,
pkg-config,
which,
@@ -71,7 +72,12 @@ stdenv.mkDerivation rec {
# ./configure is not a standard configure file, errors with:
# Option not recognized : --prefix=
dontAddPrefix = true;
# Similar for cross flags --host/--build
configurePlatforms = [ ];
configureFlags = [
"--host-os=${stdenv.hostPlatform.uname.system}"
"--host-os-version=${linuxHeaders.version}"
"--host-machine=${stdenv.hostPlatform.uname.processor}"
"--firewall=${firewall}"
# allow using various config options
"--ipv6"