2021-11-18 07:56:30 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, ncurses, zlib, bzip2, sqlite, pkg-config, glib, gnutls }:
|
2014-03-23 01:21:24 +00:00
|
|
|
|
2017-03-04 02:06:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ncdc";
|
2019-06-17 09:16:09 +00:00
|
|
|
version = "1.22.1";
|
2014-03-23 01:21:24 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://dev.yorhel.nl/download/ncdc-${version}.tar.gz";
|
2019-06-17 09:16:09 +00:00
|
|
|
sha256 = "1bdgqd07f026qk6vpbxqsin536znd33931m3b4z44prlm9wd6pyi";
|
2014-03-23 01:21:24 +00:00
|
|
|
};
|
|
|
|
|
2021-11-18 07:56:30 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream fix for ncurses-6.3 support:
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://g.blicky.net/ncdc.git/patch/?id=4126dd51e90deb9e22dfd139cc4518a7812fcad6";
|
|
|
|
sha256 = "13hqkmhmbazj6cllb5b2ccgf51vsn5lri7jqkqc5xwivgcisfrij";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-03-04 02:06:15 +00:00
|
|
|
buildInputs = [ ncurses zlib bzip2 sqlite glib gnutls ];
|
2014-03-23 01:21:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-06-04 13:47:00 +00:00
|
|
|
description = "Modern and lightweight direct connect client with a friendly ncurses interface";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://dev.yorhel.nl/ncdc";
|
2017-03-04 02:06:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux; # arbitrary
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2014-03-23 01:21:24 +00:00
|
|
|
};
|
|
|
|
}
|