nixpkgs/pkgs/applications/networking/instant-messengers/centerim/default.nix
2017-09-08 17:31:25 +02:00

32 lines
852 B
Nix

{stdenv, fetchurl, gnused, openssl, curl, ncurses, libjpeg
, withGpg ? true, gpgme ? null}:
stdenv.mkDerivation rec {
version = "5.0.1";
name = "centerim5-${version}";
src = fetchurl {
url = "http://centerim.org/download/cim5/${name}.tar.gz";
sha256 = "0viz86jflp684vfginhl6aaw4gh2qvalc25anlwljjl3kkmibklk";
};
CXXFLAGS = "-std=gnu++98";
buildInputs = [ openssl curl ncurses libjpeg ]
++ stdenv.lib.optional withGpg gpgme;
preConfigure = ''
${gnused}/bin/sed -i '1,1i#include <stdio.h>' libicq2000/libicq2000/sigslot.h
'';
configureFlags = [
"--with-openssl=${openssl.dev}"
];
meta = {
homepage = http://www.centerim.org/;
description = "Fork of CenterICQ, a curses instant messaging program";
license = stdenv.lib.licenses.gpl2Plus;
platforms = with stdenv.lib.platforms; linux;
};
}