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