2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, tcl }:
|
2009-10-08 08:01:55 +01:00
|
|
|
|
2020-02-12 17:52:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "eggdrop";
|
2021-08-08 11:26:38 +01:00
|
|
|
version = "1.9.1";
|
2009-10-08 08:01:55 +01:00
|
|
|
|
2016-02-07 23:07:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eggheads";
|
|
|
|
repo = "eggdrop";
|
2020-02-12 17:52:32 +00:00
|
|
|
rev = "v${version}";
|
2021-08-08 11:26:38 +01:00
|
|
|
sha256 = "sha256-vh8nym7aYeTRUQ7FBZRy4ToG2ajwRDhzi4jNiJQOEyQ=";
|
2009-10-08 08:01:55 +01:00
|
|
|
};
|
|
|
|
|
2015-04-27 05:30:28 +01:00
|
|
|
buildInputs = [ tcl ];
|
2009-10-08 08:01:55 +01:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-07 23:07:12 +00:00
|
|
|
|
2009-10-08 08:01:55 +01:00
|
|
|
preConfigure = ''
|
|
|
|
prefix=$out/eggdrop
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $prefix
|
2009-10-08 08:01:55 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
make config
|
|
|
|
'';
|
|
|
|
|
2015-04-27 05:30:28 +01:00
|
|
|
configureFlags = [
|
2017-09-12 20:36:41 +01:00
|
|
|
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}${stdenv.hostPlatform.extensions.sharedLibrary}"
|
2015-04-27 05:30:28 +01:00
|
|
|
"--with-tclinc=${tcl}/include/tcl.h"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-04-27 05:30:28 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2020-02-12 17:52:32 +00:00
|
|
|
homepage = "http://www.eggheads.org";
|
2019-10-06 05:59:27 +01:00
|
|
|
description = "An Internet Relay Chat (IRC) bot";
|
2015-04-27 05:30:28 +01:00
|
|
|
};
|
2009-10-08 08:01:55 +01:00
|
|
|
}
|