depot/third_party/nixpkgs/pkgs/tools/networking/eggdrop/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

36 lines
841 B
Nix

{ lib, stdenv, fetchurl, tcl }:
stdenv.mkDerivation rec {
pname = "eggdrop";
version = "1.9.5";
src = fetchurl {
url = "https://ftp.eggheads.org/pub/eggdrop/source/${lib.versions.majorMinor version}/eggdrop-${version}.tar.gz";
hash = "sha256-4mkY6opk2YV1ecW2DGYaM38gdz7dgwhrNWUlvrWBc2o=";
};
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"
];
meta = with lib; {
license = licenses.gpl2;
platforms = platforms.unix;
homepage = "https://www.eggheads.org";
description = "An Internet Relay Chat (IRC) bot";
};
}