2017-09-08 15:31:25 +00:00
|
|
|
{stdenv, fetchurl, gnused, openssl, curl, ncurses, libjpeg
|
2012-01-12 19:00:35 +00:00
|
|
|
, withGpg ? true, gpgme ? null}:
|
2012-01-12 18:55:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-08 15:31:25 +00:00
|
|
|
version = "5.0.1";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "centerim5";
|
2012-01-12 18:55:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://centerim.org/download/cim5/${pname}-${version}.tar.gz";
|
2012-01-12 18:55:08 +00:00
|
|
|
sha256 = "0viz86jflp684vfginhl6aaw4gh2qvalc25anlwljjl3kkmibklk";
|
|
|
|
};
|
2017-09-08 15:31:25 +00:00
|
|
|
|
|
|
|
CXXFLAGS = "-std=gnu++98";
|
2012-01-12 18:55:08 +00:00
|
|
|
|
2012-01-12 19:00:35 +00:00
|
|
|
buildInputs = [ openssl curl ncurses libjpeg ]
|
|
|
|
++ stdenv.lib.optional withGpg gpgme;
|
2012-01-12 18:55:08 +00:00
|
|
|
|
2017-09-08 15:31:25 +00:00
|
|
|
preConfigure = ''
|
|
|
|
${gnused}/bin/sed -i '1,1i#include <stdio.h>' libicq2000/libicq2000/sigslot.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-openssl=${openssl.dev}"
|
|
|
|
];
|
2012-01-12 18:55:08 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.centerim.org/";
|
2012-01-12 18:55:08 +00:00
|
|
|
description = "Fork of CenterICQ, a curses instant messaging program";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-01-12 18:55:08 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|