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

39 lines
809 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, tcl }:
2020-02-12 18:52:32 +01:00
stdenv.mkDerivation rec {
pname = "eggdrop";
2021-08-08 12:26:38 +02:00
version = "1.9.1";
src = fetchFromGitHub {
owner = "eggheads";
repo = "eggdrop";
2020-02-12 18:52:32 +01:00
rev = "v${version}";
2021-08-08 12:26:38 +02:00
sha256 = "sha256-vh8nym7aYeTRUQ7FBZRy4ToG2ajwRDhzi4jNiJQOEyQ=";
};
2015-04-27 06:30:28 +02:00
buildInputs = [ tcl ];
hardeningDisable = [ "format" ];
preConfigure = ''
prefix=$out/eggdrop
mkdir -p $prefix
'';
postConfigure = ''
make config
'';
2015-04-27 06:30:28 +02:00
configureFlags = [
2017-09-12 21:36:41 +02:00
"--with-tcllib=${tcl}/lib/lib${tcl.libPrefix}${stdenv.hostPlatform.extensions.sharedLibrary}"
2015-04-27 06:30:28 +02:00
"--with-tclinc=${tcl}/include/tcl.h"
];
meta = with lib; {
2015-04-27 06:30:28 +02:00
license = licenses.gpl2;
platforms = platforms.unix;
2020-02-12 18:52:32 +01:00
homepage = "http://www.eggheads.org";
description = "An Internet Relay Chat (IRC) bot";
2015-04-27 06:30:28 +02:00
};
}