biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / mcabber / default.nix
blob60ec25e5f1722972ee361ba345604df1cfd721c7
1 { lib, stdenv, fetchurl, fetchpatch, openssl, ncurses, pkg-config, glib, loudmouth, libotr
2 , gpgme
3 }:
5 stdenv.mkDerivation rec {
6   pname = "mcabber";
7   version = "1.1.2";
9   src = fetchurl {
10     url = "https://mcabber.com/files/mcabber-${version}.tar.bz2";
11     sha256 = "0q1i5acyghsmzas88qswvki8kkk2nfpr8zapgnxbcd3lwcxl38f4";
12   };
14   patches = [
15     # Pull upstream patch for ncurses-6.3.
16     (fetchpatch {
17       name = "ncurses-6.3.patch";
18       url = "https://github.com/McKael/mcabber/commit/5a0893d69023b77b7671731defbdca5d47731130.patch";
19       sha256 = "01bc23z0mva9l9jv587sq2r9w3diachgkmb9ad99hlzgj02fmq4v";
20       stripLen = 1;
21     })
22   ];
24   nativeBuildInputs = [ pkg-config ];
25   buildInputs = [ openssl ncurses glib loudmouth libotr gpgme ];
27   configureFlags = [
28     "--with-openssl=${openssl.dev}"
29     "--enable-modules"
30     "--enable-otr"
31   ];
33   doCheck = true;
35   meta = with lib; {
36     homepage = "http://mcabber.com/";
37     description = "Small Jabber console client";
38     mainProgram = "mcabber";
39     license = licenses.gpl2;
40     maintainers = with maintainers; [ pSub ];
41     platforms = with platforms; linux;
42     downloadPage = "http://mcabber.com/files/";
43   };