depot/third_party/nixpkgs/pkgs/tools/networking/eggdrop/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

38 lines
810 B
Nix

{ lib, stdenv, fetchFromGitHub, tcl }:
stdenv.mkDerivation rec {
pname = "eggdrop";
version = "1.9.3";
src = fetchFromGitHub {
owner = "eggheads";
repo = "eggdrop";
rev = "v${version}";
sha256 = "sha256-BYPDIPn1nuVhnPjs2vZ6KC6pjBVYDWsRjB8c1Z6UUdE=";
};
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";
};
}