about summary refs log tree commit diff
path: root/pkgs/tools/networking/eggdrop/default.nix
blob: c55688d5060a1ce8c84ba64fdc1ab21f4e626709 (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
{stdenv, fetchurl, tcl}:

stdenv.mkDerivation {
  name = "eggdrop-1.6.19";

  src = fetchurl {
    url = ftp://ftp.eggheads.org/pub/eggdrop/GNU/1.6/eggdrop1.6.19+ctcpfix.tar.gz;
    sha256 = "1lpa6sqwizn8y30i14559j3427vi743pmsxjq9g70x4m71hmshvi";
  };

  buildInputs = [tcl]; 

  preConfigure = ''
    prefix=$out/eggdrop
    ensureDir $prefix
  '';

  postConfigure = ''
    make config
  '';

  configureFlags = "--with-tcllib=${tcl}/lib/libtcl8.5.so --with-tclinc=${tcl}/include/tcl.h";
}