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