2017-09-08 16:31:25 +01: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 16:31:25 +01:00
|
|
|
version = "5.0.1";
|
|
|
|
name = "centerim5-${version}";
|
2012-01-12 18:55:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-08 16:31:25 +01:00
|
|
|
url = "http://centerim.org/download/cim5/${name}.tar.gz";
|
2012-01-12 18:55:08 +00:00
|
|
|
sha256 = "0viz86jflp684vfginhl6aaw4gh2qvalc25anlwljjl3kkmibklk";
|
|
|
|
};
|
2017-09-08 16:31:25 +01: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 16:31:25 +01: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 = {
|
|
|
|
homepage = http://www.centerim.org/;
|
|
|
|
description = "Fork of CenterICQ, a curses instant messaging program";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-01-12 18:55:08 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|