about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libircclient/default.nix
blob: 56a9f1b961cf99f0655b7872b3ed9244403c87f4 (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
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "1.10";
  pname   = "libircclient";

  src = fetchurl {
    url    = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}-${version}.tar.gz";
    sha256 = "0b9wa0h3xc31wpqlvgxgnvqp5wgx3kwsf5s9432m5cj8ycx6zcmv";
  };

  outputs = [ "out" "dev" ];

  configureFlags = [ "--enable-shared" ];

  postPatch = ''
    substituteInPlace src/Makefile.in \
      --replace "@prefix@/include" "@prefix@/include/libircclient" \
      --replace "@libdir@"         "@prefix@/lib" \
      --replace "cp "              "install "
  '';

  meta = with lib; {
    description = "A small but extremely powerful library which implements the client IRC protocol";
    homepage    = "http://www.ulduzsoft.com/libircclient/";
    license     = licenses.lgpl3;
    maintainers = with maintainers; [ obadz ];
    platforms   = platforms.linux;
  };
}