Commit a36d820b authored by misuzu's avatar misuzu Committed by zimbatm
Browse files

unbound: bison is required when cross-compiling

parent ab0eae0f
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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 ]
@@ -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 ''