Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 54 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 ncurses, 6 zlib, 7 bzip2, 8 sqlite, 9 pkg-config, 10 glib, 11 gnutls, 12 perl, 13 libmaxminddb, 14 versionCheckHook, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "ncdc"; 19 version = "1.25"; 20 21 src = fetchurl { 22 url = "https://dev.yorhel.nl/download/ncdc-${finalAttrs.version}.tar.gz"; 23 # Hashes listed at https://dev.yorhel.nl/download 24 sha256 = "b9be58e7dbe677f2ac1c472f6e76fad618a65e2f8bf1c7b9d3d97bc169feb740"; 25 }; 26 27 nativeBuildInputs = [ 28 perl 29 pkg-config 30 versionCheckHook 31 ]; 32 buildInputs = [ 33 ncurses 34 zlib 35 bzip2 36 sqlite 37 glib 38 gnutls 39 libmaxminddb 40 ]; 41 42 configureFlags = [ "--with-geoip" ]; 43 44 doInstallCheck = true; 45 46 meta = { 47 changelog = "https://dev.yorhel.nl/ncdc/changes"; 48 description = "Modern and lightweight direct connect client with a friendly ncurses interface"; 49 homepage = "https://dev.yorhel.nl/ncdc"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ ehmry ]; 52 mainProgram = "ncdc"; 53 }; 54})