diff --git a/pkgs/applications/networking/instant-messengers/bitlbee-otr/default.nix b/pkgs/applications/networking/instant-messengers/bitlbee-otr/default.nix new file mode 100644 index 00000000000..0681c1db8b1 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/bitlbee-otr/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchbzr, gnutls, glib, pkgconfig, libotr +, libxslt, xmlto, docbook_xsl, docbook_xml_dtd_42, perl }: + +let revision = "369"; in +stdenv.mkDerivation rec { + name = "bitlbee-otr-r${revision}"; + src = fetchbzr { + url = "http://khjk.org/~pesco/bitlbee-otr"; + sha256 = "0fb7987ec4a321e07f22690ed6617db9f377fdf4e65a531d8da28a950817074f"; + inherit revision; + }; + + patchPhase = '' + sed -i "configure" -e "s|-f \$""{i}/lib/libotr.a|0 -eq 0|g ; + s|otrprefix=\$""{i}|otrprefix=\"${libotr}\"|g"; + ''; + + buildInputs = [ gnutls glib pkgconfig libotr + libxslt xmlto docbook_xsl docbook_xml_dtd_42 perl + ]; + + meta = { + description = ''BitlBee, an IRC to other chat networks gateway.''; + + longDescription = '' + This unofficial version adds support for communication encryption + and authentication via the OTR (off-the-record) library. + ''; + + # See also http://bugs.bitlbee.org/bitlbee/ticket/115 . + homepage = http://khjk.org/bitlbee-otr/; + + license = "GPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c329fb1690c..87886587453 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5854,6 +5854,12 @@ let inherit (gtkLibs) glib; }; + bitlbeeOtr = import ../applications/networking/instant-messengers/bitlbee-otr { + inherit fetchbzr stdenv gnutls pkgconfig libotr + libxslt xmlto docbook_xsl docbook_xml_dtd_42 perl; + inherit (gtkLibs) glib; + }; + # commented out because it's using the new configuration style proposal which is unstable #biew = import ../applications/misc/biew { # inherit lib stdenv fetchurl ncurses;