Skip to content

Commit

Permalink
[staging] unbound: bison is required when cross-compiling (#364656)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 12, 2024
2 parents a349287 + 6e40f85 commit 622624f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkgs/by-name/un/unbound/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ stdenv.mkDerivation (finalAttrs: {

outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB

nativeBuildInputs =
lib.optionals withMakeWrapper [ makeWrapper ]
nativeBuildInputs = [ bison flex pkg-config ]
++ lib.optionals withMakeWrapper [ makeWrapper ]
++ lib.optionals withDNSTAP [ protobufc ]
++ [ pkg-config flex ]
++ lib.optionals withPythonModule [ swig ];

buildInputs = [ openssl nettle expat libevent ]
Expand Down Expand Up @@ -121,8 +120,6 @@ stdenv.mkDerivation (finalAttrs: {
sed -E '/CONFCMDLINE/ s;${storeDir}/[a-z0-9]{32}-;${storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-;g' -i config.h
'';

nativeCheckInputs = [ bison ];

doCheck = true;

postPatch = lib.optionalString withPythonModule ''
Expand Down

0 comments on commit 622624f

Please sign in to comment.