2021-01-15 05:42:41 +00:00
|
|
|
{ lib, 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";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "centerim5";
|
2012-01-12 18:55:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://centerim.org/download/cim5/${pname}-${version}.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 ]
|
2021-01-15 05:42:41 +00:00
|
|
|
++ 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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.centerim.org/";
|
2012-01-12 18:55:08 +00:00
|
|
|
description = "Fork of CenterICQ, a curses instant messaging program";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = with lib.platforms; linux;
|
2012-01-12 18:55:08 +00:00
|
|
|
};
|
|
|
|
}
|