default.nix (802B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 doxygen, 7 boost, 8 gsl-lite, 9 gtest, 10 zlib, 11 }: 12 13 stdenv.mkDerivation (finalAttrs: { 14 pname = "telnetpp"; 15 version = "3.0.0"; 16 17 src = fetchFromGitHub { 18 owner = "KazDragon"; 19 repo = "telnetpp"; 20 rev = "v${finalAttrs.version}"; 21 hash = "sha256-BfRu0dv2d7qwz2jTdaQczOQQBO3qmO1E754hWqxT66g="; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 doxygen 27 ]; 28 29 buildInputs = [ 30 boost 31 gsl-lite 32 gtest 33 zlib 34 ]; 35 36 cmakeFlags = [ (lib.cmakeBool "TELNETPP_WITH_ZLIB" true) ]; 37 38 meta = { 39 description = "A C++ library for interacting with Telnet streams"; 40 homepage = "https://github.com/KazDragon/telnetpp"; 41 license = lib.licenses.mit; 42 maintainers = [ lib.maintainers.sikmir ]; 43 platforms = lib.platforms.unix; 44 }; 45 })