summary refs log tree commit diff
path: root/pkgs/tools/networking/eggdrop/default.nix
blob: 5b85a680efdf6d3fcbfd1eb6fed0003ad6d6996f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchFromGitHub, tcl }:

stdenv.mkDerivation {
  pname = "eggdrop";
  version = "1.6.21-nix1";

  src = fetchFromGitHub {
    owner = "eggheads";
    repo = "eggdrop";
    rev = "9ec109a13c016c4cdc7d52b7e16e4b9b6fbb9331";
    sha256 = "0mf1vcbmpnvmf5mxk7gi3z32fxpcbynsh9jni8z8frrscrdf5lp5";
  };

  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 stdenv.lib; {
    license = licenses.gpl2;
    platforms = platforms.unix;
    homepage = http://www.eggheads.org;
    description = "An Internet Relay Chat (IRC) bot";
  };
}