nixpkgs/pkgs/tools/networking/eggdrop/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
841 B
Nix
Raw Normal View History

2023-01-24 16:18:16 +00:00
{ lib, stdenv, fetchurl, tcl }:
2020-02-12 17:52:32 +00:00
stdenv.mkDerivation rec {
pname = "eggdrop";
2023-03-29 02:37:08 +00:00
version = "1.9.5";
2023-01-24 16:18:16 +00:00
src = fetchurl {
url = "https://ftp.eggheads.org/pub/eggdrop/source/${lib.versions.majorMinor version}/eggdrop-${version}.tar.gz";
2023-03-29 02:37:08 +00:00
hash = "sha256-4mkY6opk2YV1ecW2DGYaM38gdz7dgwhrNWUlvrWBc2o=";
};
2015-04-27 04:30:28 +00:00
buildInputs = [ tcl ];
hardeningDisable = [ "format" ];
preConfigure = ''
prefix=$out/eggdrop
mkdir -p $prefix
'';
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 lib; {
2015-04-27 04:30:28 +00:00
license = licenses.gpl2;
platforms = platforms.unix;
homepage = "https://www.eggheads.org";
description = "An Internet Relay Chat (IRC) bot";
2015-04-27 04:30:28 +00:00
};
}