Merge pull request #243131 from algernon/rcc-2.1

riemann_c_client: Optional TLS support & other changes

authored by Peder Bergebakken Sundt and committed by GitHub 17283f66 2076e775

+22 -8
+22 -8
pkgs/tools/misc/riemann-c-client/default.nix
··· 1 - { lib, stdenv, fetchFromGitea, autoreconfHook, pkg-config, file , protobufc }: 2 3 stdenv.mkDerivation rec { 4 pname = "riemann-c-client"; ··· 9 owner = "algernon"; 10 repo = "riemann-c-client"; 11 rev = "riemann-c-client-${version}"; 12 - sha256 = "sha256-FIhTT57g2uZBaH3EPNxNUNJn9n+0ZOhI6WMyF+xIr/Q="; 13 }; 14 15 - nativeBuildInputs = [ autoreconfHook pkg-config ]; 16 - buildInputs = [ file protobufc ]; 17 18 - preBuild = '' 19 - make lib/riemann/proto/riemann.pb-c.h 20 - ''; 21 22 meta = with lib; { 23 homepage = "https://git.madhouse-project.org/algernon/riemann-c-client"; 24 description = "A C client library for the Riemann monitoring system"; 25 - license = licenses.gpl3; 26 maintainers = with maintainers; [ pradeepchhetri ]; 27 platforms = platforms.linux; 28 };
··· 1 + { lib, stdenv, fetchFromGitea, autoreconfHook, check, pkg-config, file, protobufc 2 + ,withWolfSSL ? false, wolfssl 3 + ,withGnuTLS ? false, gnutls 4 + ,withJSON ? true, json_c 5 + }: 6 7 stdenv.mkDerivation rec { 8 pname = "riemann-c-client"; ··· 13 owner = "algernon"; 14 repo = "riemann-c-client"; 15 rev = "riemann-c-client-${version}"; 16 + hash = "sha256-FIhTT57g2uZBaH3EPNxNUNJn9n+0ZOhI6WMyF+xIr/Q="; 17 }; 18 19 + outputs = [ "bin" "dev" "out" ]; 20 21 + nativeBuildInputs = [ autoreconfHook check pkg-config ]; 22 + buildInputs = [ file protobufc ] 23 + ++ lib.optional withWolfSSL wolfssl 24 + ++ lib.optional withGnuTLS gnutls 25 + ++ lib.optional withJSON json_c 26 + ; 27 + 28 + configureFlags = [] 29 + ++ lib.optional withWolfSSL "--with-tls=wolfssl" 30 + ++ lib.optional withGnuTLS "--with-tls=gnutls" 31 + ; 32 + 33 + doCheck = true; 34 + enableParallelBuilding = true; 35 36 meta = with lib; { 37 homepage = "https://git.madhouse-project.org/algernon/riemann-c-client"; 38 description = "A C client library for the Riemann monitoring system"; 39 + license = licenses.lgpl3Plus; 40 maintainers = with maintainers; [ pradeepchhetri ]; 41 platforms = platforms.linux; 42 };