2017-05-07 16:36:50 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, bison, flex, autoconf, automake, openssl }:
|
2012-02-23 23:47:26 +00:00
|
|
|
|
2017-05-07 16:36:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bip";
|
2017-05-07 16:36:50 +01:00
|
|
|
version = "0.8.9";
|
2012-02-23 23:47:26 +00:00
|
|
|
|
|
|
|
# fetch sources from debian, because the creator's website provides
|
|
|
|
# the files only via https but with an untrusted certificate.
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/b/bip/bip_${version}.orig.tar.gz";
|
2017-05-07 16:36:50 +01:00
|
|
|
sha256 = "0q942g9lyd8pjvqimv547n6vik5759r9npw3ws3bdj4ixxqhz59w";
|
2012-02-23 23:47:26 +00:00
|
|
|
};
|
|
|
|
|
2017-05-07 16:36:50 +01:00
|
|
|
buildInputs = [ bison flex autoconf automake openssl ];
|
|
|
|
|
2012-02-23 23:47:26 +00:00
|
|
|
# includes an important security patch
|
2017-05-07 16:36:50 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "mirror://gentoo/../gentoo-portage/net-irc/bip/files/bip-freenode.patch";
|
|
|
|
sha256 = "05qy7a62p16f5knrsdv2lkhc07al18qq32ciq3k4r0lq1wbahj2y";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://projects.duckcorp.org/projects/bip/repository/revisions/39414f8ff9df63c8bc2e4eee34f09f829a5bf8f5/diff/src/connection.c?format=diff";
|
|
|
|
sha256 = "1hvg58vci6invh0z19wf04jjvnm8w6f6v4c4nk1j5hc3ymxdp1rb";
|
|
|
|
})
|
2019-11-02 22:07:19 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://projects.duckcorp.org/projects/bip/repository/bip/revisions/87192685f55856d2c28021963ab2c308e21faddc/diff?format=diff";
|
|
|
|
sha256 = "0rspzp7q1lq8v0cl0c35xxpgisfk264i648vslgsjax2s0g9svx0";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://projects.duckcorp.org/projects/bip/repository/bip/revisions/814d54c676d5827f6ea37c1cd2d6e846d080c13c/diff?format=diff";
|
|
|
|
sha256 = "137l77kmm6p9p4c4kvw2zc4xkr10ayyc9z5rlpwn67574h47v55i";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://projects.duckcorp.org/projects/bip/repository/bip/revisions/d2dcb0adb1aa8c2c4526aa6ad650483b0e02ab7d/diff?format=diff";
|
|
|
|
sha256 = "1pvywaljdkmy4870xs6gvsk4qwg69h47qr0yjywbcdsfycrgp8aq";
|
|
|
|
})
|
2012-02-23 23:47:26 +00:00
|
|
|
];
|
|
|
|
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=duplicate-decl-specifier";
|
2012-02-23 23:47:26 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An IRC proxy (bouncer)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://bip.milkypond.org/";
|
2012-02-23 23:47:26 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2017-05-07 16:36:50 +01:00
|
|
|
downloadPage = "https://projects.duckcorp.org/projects/bip/files";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-02-23 23:47:26 +00:00
|
|
|
};
|
2013-03-12 18:22:48 +00:00
|
|
|
}
|