summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/centerim/default.nix
blob: 52d8178764c5ade30e34b35f3b3e660a8103c870 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{stdenv, fetchurl, gnused, openssl, curl, ncurses, libjpeg
, withGpg ? true, gpgme ? null}:

stdenv.mkDerivation rec {
  version = "5.0.1";
  pname = "centerim5";

  src = fetchurl {
    url = "http://centerim.org/download/cim5/${pname}-${version}.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;
  };
}