nixpkgs/pkgs/applications/networking/instant-messengers/centerim/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
842 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, stdenv, fetchurl, gnused, openssl, curl, ncurses, libjpeg
, withGpg ? true, gpgme ? null}:
stdenv.mkDerivation rec {
2017-09-08 15:31:25 +00:00
version = "5.0.1";
pname = "centerim5";
src = fetchurl {
url = "http://centerim.org/download/cim5/${pname}-${version}.tar.gz";
sha256 = "0viz86jflp684vfginhl6aaw4gh2qvalc25anlwljjl3kkmibklk";
};
2017-09-08 15:31:25 +00:00
CXXFLAGS = "-std=gnu++98";
buildInputs = [ openssl curl ncurses libjpeg ]
2021-01-15 05:42:41 +00:00
++ lib.optional withGpg gpgme;
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}"
];
meta = {
homepage = "https://www.centerim.org/";
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;
};
}