2016-02-07 23:07:12 +00:00
|
|
|
{ stdenv, fetchFromGitHub, tcl }:
|
2009-10-08 07:01:55 +00:00
|
|
|
|
2015-04-27 04:30:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "eggdrop-${version}";
|
2016-02-07 23:07:12 +00:00
|
|
|
version = "1.6.21-nix1";
|
2009-10-08 07:01:55 +00:00
|
|
|
|
2016-02-07 23:07:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eggheads";
|
|
|
|
repo = "eggdrop";
|
|
|
|
rev = "9ec109a13c016c4cdc7d52b7e16e4b9b6fbb9331";
|
|
|
|
sha256 = "0mf1vcbmpnvmf5mxk7gi3z32fxpcbynsh9jni8z8frrscrdf5lp5";
|
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
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-07 23:07:12 +00:00
|
|
|
|
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 = [
|
2017-09-12 19:36:41 +00:00
|
|
|
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}${stdenv.hostPlatform.extensions.sharedLibrary}"
|
2015-04-27 04:30:28 +00:00
|
|
|
"--with-tclinc=${tcl}/include/tcl.h"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2009-10-08 07:01:55 +00:00
|
|
|
}
|