2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, tcl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "eggdrop";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "1.9.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ftp.eggheads.org/pub/eggdrop/source/${lib.versions.majorMinor version}/eggdrop-${version}.tar.gz";
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-4mkY6opk2YV1ecW2DGYaM38gdz7dgwhrNWUlvrWBc2o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ tcl ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
prefix=$out/eggdrop
|
|
|
|
mkdir -p $prefix
|
|
|
|
'';
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
make config
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}${stdenv.hostPlatform.extensions.sharedLibrary}"
|
|
|
|
"--with-tclinc=${tcl}/include/tcl.h"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2021-12-30 13:39:12 +00:00
|
|
|
homepage = "https://www.eggheads.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An Internet Relay Chat (IRC) bot";
|
|
|
|
};
|
|
|
|
}
|