Merge pull request #263516 from jmbaur/kea-cross-compile

kea: allow kea to cross-compile

authored by Martin Weinelt and committed by GitHub a90ad780 fe1e9d52

+8 -4
+8 -4
pkgs/tools/networking/kea/default.nix
··· 5 5 # build time 6 6 , autoreconfHook 7 7 , pkg-config 8 + , python3Packages 8 9 9 10 # runtime 11 + , withMysql ? stdenv.buildPlatform.system == stdenv.hostPlatform.system 12 + , withPostgres ? stdenv.buildPlatform.system == stdenv.hostPlatform.system 10 13 , boost 11 14 , libmysqlclient 12 15 , log4cplus ··· 48 51 "--enable-shell" 49 52 "--localstatedir=/var" 50 53 "--with-openssl=${lib.getDev openssl}" 51 - "--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config" 52 - "--with-pgsql=${postgresql}/bin/pg_config" 53 - ]; 54 + ] 55 + ++ lib.optional withPostgres "--with-pgsql=${postgresql}/bin/pg_config" 56 + ++ lib.optional withMysql "--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"; 57 + 54 58 postConfigure = '' 55 59 # Mangle embedded paths to dev-only inputs. 56 60 sed -e "s|$NIX_STORE/[a-z0-9]\{32\}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" -i config.report ··· 59 63 nativeBuildInputs = [ 60 64 autoreconfHook 61 65 pkg-config 62 - ] ++ (with python3.pkgs; [ 66 + ] ++ (with python3Packages; [ 63 67 sphinxHook 64 68 sphinx-rtd-theme 65 69 ]);