1{ stdenv, fetchurl, tcl }:
2
3stdenv.mkDerivation rec {
4 name = "eggdrop-${version}";
5 version = "1.6.21";
6
7 src = fetchurl {
8 url = "ftp://ftp.eggheads.org/pub/eggdrop/GNU/1.6/eggdrop${version}.tar.gz";
9 sha256 = "1galvbh9y4c3msrg1s9na0asm077mh1g2i2vsv1vczmfrbgq92vs";
10 };
11
12 buildInputs = [ tcl ];
13
14 preConfigure = ''
15 prefix=$out/eggdrop
16 mkdir -p $prefix
17 '';
18
19 postConfigure = ''
20 make config
21 '';
22
23 configureFlags = [
24 "--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}.so"
25 "--with-tclinc=${tcl}/include/tcl.h"
26 ];
27
28 meta = with stdenv.lib; {
29 license = licenses.gpl2;
30 platforms = platforms.unix;
31 };
32}