1{ stdenv, fetchurl, cmake }:
2
3stdenv.mkDerivation rec {
4 name = "${pname}-${version}";
5 version = "1.9";
6 pname = "libircclient";
7
8 src = fetchurl {
9 url = "mirror://sourceforge/${pname}/${pname}/${version}/${name}.tar.gz";
10 sha256 = "0r60i76jh4drjh2jgp5sx71chagqllmkaq49zv67nrhqwvp9ghw1";
11 };
12
13 outputs = [ "out" "dev" ];
14
15 configureFlags = [ "--enable-shared" ];
16
17 postPatch = ''
18 substituteInPlace src/Makefile.in \
19 --replace "@prefix@/include" "@prefix@/include/libircclient" \
20 --replace "@libdir@" "@prefix@/lib" \
21 --replace "cp " "install "
22 '';
23
24 meta = with stdenv.lib; {
25 description = "A small but extremely powerful library which implements the client IRC protocol";
26 homepage = http://www.ulduzsoft.com/libircclient/;
27 license = licenses.lgpl3;
28 maintainers = with maintainers; [ obadz ];
29 platforms = platforms.linux;
30 };
31}