Files
nixpkgs/pkgs/by-name/eg/eggdrop/package.nix
Eric Rodrigues Pires 9e4da38625 eggdrop: 1.10.1 -> 1.10.2
2026-09-06 12:33:10 -03:00

47 lines
965 B
Nix

{
lib,
stdenv,
fetchurl,
openssl,
tcl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "eggdrop";
version = "1.10.2";
src = fetchurl {
url = "https://ftp.eggheads.org/pub/eggdrop/source/${lib.versions.majorMinor finalAttrs.version}/eggdrop-${finalAttrs.version}.tar.gz";
hash = "sha256-1mRrYwh54azZsFP/oS9GZn+QcUXymvHfD4J0nvMDKpQ=";
};
buildInputs = [
openssl
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 = {
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
homepage = "https://www.eggheads.org";
description = "Internet Relay Chat (IRC) bot";
maintainers = with lib.maintainers; [ EpicEric ];
};
})