From 03e6a6f85fb419ed30c8dffd29f8f7a7a2c6db82 Mon Sep 17 00:00:00 2001 From: Paolo Capriotti Date: Tue, 12 Mar 2013 18:22:48 +0000 Subject: [PATCH] Add patch to fix build for bip. --- .../networking/irc/bip/bip-0.8.8-yyparse.patch | 11 +++++++++++ pkgs/applications/networking/irc/bip/default.nix | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/networking/irc/bip/bip-0.8.8-yyparse.patch diff --git a/pkgs/applications/networking/irc/bip/bip-0.8.8-yyparse.patch b/pkgs/applications/networking/irc/bip/bip-0.8.8-yyparse.patch new file mode 100644 index 000000000000..5d48fc99a0da --- /dev/null +++ b/pkgs/applications/networking/irc/bip/bip-0.8.8-yyparse.patch @@ -0,0 +1,11 @@ +--- bip-0.8.8/src/lex.l.orig ++++ bip-0.8.8/src/lex.l +@@ -16,7 +16,7 @@ + int linec; + #include "util.h" + extern list_t *root_list; +-void yyparse(void); ++int yyparse(void); + void free_conf(list_t*); + int conf_error; + typedef struct bip bip_t; diff --git a/pkgs/applications/networking/irc/bip/default.nix b/pkgs/applications/networking/irc/bip/default.nix index eaee36b97116..89fdf0d8df85 100644 --- a/pkgs/applications/networking/irc/bip/default.nix +++ b/pkgs/applications/networking/irc/bip/default.nix @@ -36,6 +36,10 @@ in stdenv.mkDerivation { } ]; + postPatch = '' + patch -p1 < ${./bip-0.8.8-yyparse.patch} + ''; + configureFlags = [ "--disable-pie" ]; buildInputs = [ bison flex autoconf automake openssl ]; @@ -45,4 +49,4 @@ in stdenv.mkDerivation { homepage = http://bip.milkypond.org/; license = stdenv.lib.licenses.gpl2; }; -} \ No newline at end of file +}