2015-04-27 04:30:28 +00:00
|
|
|
{ stdenv, fetchurl, tcl }:
|
2009-10-08 07:01:55 +00:00
|
|
|
|
2015-04-27 04:30:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "eggdrop-${version}";
|
|
|
|
version = "1.6.21";
|
2009-10-08 07:01:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-27 04:30:28 +00:00
|
|
|
url = "ftp://ftp.eggheads.org/pub/eggdrop/GNU/1.6/eggdrop${version}.tar.gz";
|
|
|
|
sha256 = "1galvbh9y4c3msrg1s9na0asm077mh1g2i2vsv1vczmfrbgq92vs";
|
2009-10-08 07:01:55 +00:00
|
|
|
};
|
|
|
|
|
2015-04-27 04:30:28 +00:00
|
|
|
buildInputs = [ tcl ];
|
2009-10-08 07:01:55 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
prefix=$out/eggdrop
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $prefix
|
2009-10-08 07:01:55 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
make config
|
|
|
|
'';
|
|
|
|
|
2015-04-27 04:30:28 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}.so"
|
|
|
|
"--with-tclinc=${tcl}/include/tcl.h"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2009-10-08 07:01:55 +00:00
|
|
|
}
|