nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 06261a777c13327c5c7aeda23d7791c11a1081e4
parent c00bc82fb9524c1ae49148d891ea5da5fbe9b880
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue,  4 Oct 2022 12:36:51 +0300

Add telnetpp

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/telnetpp/default.nix | 27+++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -337,6 +337,7 @@ lib.makeScope newScope ( taskcoach = callPackage ./misc/taskcoach { }; tcvt = callPackage ./misc/tcvt { }; telegabber = callPackage ./misc/telegabber { }; + telnetpp = callPackage ./misc/telnetpp { }; tlstunnel = callPackage ./misc/tlstunnel { }; worm = callPackage ./misc/worm { }; wptools = callPackage ./misc/wptools { }; diff --git a/pkgs/misc/telnetpp/default.nix b/pkgs/misc/telnetpp/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub, cmake, doxygen, boost, gsl-lite, gtest, zlib }: + +stdenv.mkDerivation rec { + pname = "telnetpp"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "KazDragon"; + repo = "telnetpp"; + rev = "v${version}"; + hash = "sha256-BfRu0dv2d7qwz2jTdaQczOQQBO3qmO1E754hWqxT66g="; + }; + + nativeBuildInputs = [ cmake doxygen ]; + + buildInputs = [ boost gsl-lite gtest zlib ]; + + cmakeFlags = [ "-DTELNETPP_WITH_ZLIB=True" ]; + + meta = with lib; { + description = "A C++ library for interacting with Telnet streams"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}