2024-01-09 11:52:08 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, zlib
|
|
|
|
, bzip2
|
|
|
|
, sqlite
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, gnutls
|
|
|
|
, perl
|
|
|
|
, libmaxminddb
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "ncdc";
|
2024-07-19 02:33:30 +02:00
|
|
|
version = "1.24.1";
|
2024-01-09 11:52:08 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dev.yorhel.nl/download/ncdc-${finalAttrs.version}.tar.gz";
|
2024-07-19 02:33:30 +02:00
|
|
|
hash = "sha256-Koq5rX1D8Bj8c7qLq9aJ36RKuozsU7iOR3AYXLl3ePc=";
|
2024-01-09 11:52:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl pkg-config ];
|
|
|
|
buildInputs = [ ncurses zlib bzip2 sqlite glib gnutls libmaxminddb ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-geoip" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://dev.yorhel.nl/ncdc/changes";
|
|
|
|
description = "Modern and lightweight direct connect client with a friendly ncurses interface";
|
|
|
|
homepage = "https://dev.yorhel.nl/ncdc";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
mainProgram = "ncdc";
|
|
|
|
};
|
|
|
|
})
|