mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
bird: fix cross-build
This commit is contained in:
parent
8871ffccff
commit
7bb24a65e4
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user