about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/irc/irssi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/irc/irssi/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/networking/irc/irssi/default.nix69
1 files changed, 43 insertions, 26 deletions
diff --git a/nixpkgs/pkgs/applications/networking/irc/irssi/default.nix b/nixpkgs/pkgs/applications/networking/irc/irssi/default.nix
index 8dbd2cd73ee4..b04cd2e07aab 100644
--- a/nixpkgs/pkgs/applications/networking/irc/irssi/default.nix
+++ b/nixpkgs/pkgs/applications/networking/irc/irssi/default.nix
@@ -1,40 +1,57 @@
-{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, ncurses, glib, openssl, perl, libintl, libgcrypt, libotr, git }:
+{ lib
+, stdenv
+, fetchFromGitHub
+, glib
+, libgcrypt
+, libintl
+, libotr
+, libtool
+, meson
+, ncurses
+, ninja
+, openssl
+, perl
+, pkg-config
+}:
 
 stdenv.mkDerivation rec {
   pname = "irssi";
-  version = "1.2.3";
-
+  version = "1.4.2";
 
   src = fetchFromGitHub {
-    "owner" = "irssi";
-    "repo" = "irssi";
-    "rev" = "91dc3e4dfa1a9558c5a7fe0ea982cb9df0e2de65";
-    "sha256" = "efnE4vuDd7TnOBxMPduiV0/nez1jVhTjbJ0vzN4ZMcg=";
-    "leaveDotGit" = true;
+    owner = "irssi";
+    repo = "irssi";
+    rev = version;
+    hash = "sha256-dQZ/CeBfcfWGjKPF3fR62JDqyEXGv5hd9VT4OEbgJhQ=";
   };
 
-  nativeBuildInputs = [ pkg-config autoconf automake libtool git ];
-  buildInputs = [ ncurses glib openssl perl libintl libgcrypt libotr ];
-
-  enableParallelBuilding = true;
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+  ];
 
-  preConfigure = ''
-    NOCONFIGURE=1 ./autogen.sh
-  '';
+  buildInputs = [
+    glib
+    libgcrypt
+    libintl
+    libotr
+    ncurses
+    openssl
+    perl
+  ];
 
   configureFlags = [
-    "--with-proxy"
-    "--with-bot"
-    "--with-perl=yes"
-    "--with-otr=yes"
-    "--enable-true-color"
+    "-Dwith-proxy=yes"
+    "-Dwith-bot=yes"
+    "-Dwith-perl=yes"
   ];
 
-  meta = {
-    homepage    = "https://irssi.org";
-    description = "A terminal based IRC client";
-    platforms   = lib.platforms.unix;
-    maintainers = with lib.maintainers; [ lovek323 ];
-    license     = lib.licenses.gpl2Plus;
+  meta = with lib; {
+    description = "Terminal based IRC client";
+    homepage = "https://irssi.org";
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ fab lovek323 ];
+    platforms = platforms.unix;
   };
 }