2021-11-03 09:30:28 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, openssl, ncurses, pkg-config, glib, loudmouth, libotr
|
2015-01-04 16:55:41 +00:00
|
|
|
, gpgme
|
|
|
|
}:
|
2009-01-04 17:11:38 +00:00
|
|
|
|
2014-08-30 22:41:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mcabber";
|
2020-11-03 03:25:31 +00:00
|
|
|
version = "1.1.2";
|
2009-01-04 17:11:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://mcabber.com/files/mcabber-${version}.tar.bz2";
|
2020-11-03 03:25:31 +00:00
|
|
|
sha256 = "0q1i5acyghsmzas88qswvki8kkk2nfpr8zapgnxbcd3lwcxl38f4";
|
2009-01-04 17:11:38 +00:00
|
|
|
};
|
|
|
|
|
2021-11-03 09:30:28 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream patch for ncurses-6.3.
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://github.com/McKael/mcabber/commit/5a0893d69023b77b7671731defbdca5d47731130.patch";
|
|
|
|
sha256 = "01bc23z0mva9l9jv587sq2r9w3diachgkmb9ad99hlzgj02fmq4v";
|
|
|
|
stripLen = 1;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ openssl ncurses glib loudmouth libotr gpgme ];
|
2009-01-04 17:11:38 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-openssl=${openssl.dev}"
|
|
|
|
"--enable-modules"
|
|
|
|
"--enable-otr"
|
|
|
|
];
|
2015-06-10 07:19:16 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2016-11-30 13:23:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://mcabber.com/";
|
2014-08-30 22:41:40 +00:00
|
|
|
description = "Small Jabber console client";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; linux;
|
2017-11-11 12:31:04 +00:00
|
|
|
downloadPage = "http://mcabber.com/files/";
|
2014-08-30 22:41:40 +00:00
|
|
|
};
|
2009-01-04 17:11:38 +00:00
|
|
|
}
|