about summary refs log tree commit diff
path: root/pkgs/applications/networking/irc/irssi/default.nix
blob: 8dbd2cd73ee4b5d2912834beda3c24ef9ae0650e (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
39
40
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, ncurses, glib, openssl, perl, libintl, libgcrypt, libotr, git }:

stdenv.mkDerivation rec {
  pname = "irssi";
  version = "1.2.3";


  src = fetchFromGitHub {
    "owner" = "irssi";
    "repo" = "irssi";
    "rev" = "91dc3e4dfa1a9558c5a7fe0ea982cb9df0e2de65";
    "sha256" = "efnE4vuDd7TnOBxMPduiV0/nez1jVhTjbJ0vzN4ZMcg=";
    "leaveDotGit" = true;
  };

  nativeBuildInputs = [ pkg-config autoconf automake libtool git ];
  buildInputs = [ ncurses glib openssl perl libintl libgcrypt libotr ];

  enableParallelBuilding = true;

  preConfigure = ''
    NOCONFIGURE=1 ./autogen.sh
  '';

  configureFlags = [
    "--with-proxy"
    "--with-bot"
    "--with-perl=yes"
    "--with-otr=yes"
    "--enable-true-color"
  ];

  meta = {
    homepage    = "https://irssi.org";
    description = "A terminal based IRC client";
    platforms   = lib.platforms.unix;
    maintainers = with lib.maintainers; [ lovek323 ];
    license     = lib.licenses.gpl2Plus;
  };
}