bird: fix cross-build

This commit is contained in:
Jörg Thalheim 2018-12-11 11:25:13 +00:00 committed by Robin Gloster
parent 8871ffccff
commit 7bb24a65e4

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, flex, bison, readline }:
{ lib, stdenv, fetchurl, fetchpatch, flex, bison, readline }:
with lib;
@ -18,8 +18,15 @@ let
patches = [
(./. + "/dont-create-sysconfdir-${builtins.substring 0 1 version}.patch")
# https://github.com/BIRD/bird/pull/4
(fetchpatch {
url = "https://github.com/BIRD/bird/commit/fca9ab48e3823c734886f47156a92f6b804c16e9.patch";
sha256 = "1pnndc3n56lqqcy74ln0w5kn3i9rbzsm2dqiyp1qw7j33dpkln1b";
})
];
CPP="${stdenv.cc.targetPrefix}cpp -E";
configureFlags = [
"--localstatedir=/var"
] ++ optional enableIPv6 "--enable-ipv6";