Unverified Commit ff873846 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

srt-xtransmit: init at 0.2.0 (#473609)

parents 4e884ec1 4c40aa44
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -22207,6 +22207,11 @@
    github = "randomdude16671";
    githubId = 210965013;
  };
  randomizedcoder = {
    name = "randomizedcoder";
    github = "randomizedcoder";
    githubId = 64496590;
  };
  randoneering = {
    name = "randoneering";
    email = "justin@randoneering.tech";
+53 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  pkg-config,
  openssl,
}:

stdenv.mkDerivation rec {
  pname = "srt-xtransmit";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "maxsharabayko";
    repo = "srt-xtransmit";
    tag = "v${version}";
    fetchSubmodules = true;
    hash = "sha256-AEqVJr7TLH+MV4SntZhFFXTttnmcywda/P1EoD2px6E=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    openssl
  ];

  cmakeFlags = [
    "-DENABLE_CXX17=OFF"
    "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
  ];

  # Upstream CMake does not install srt-xtransmit by default.
  installPhase = ''
    runHook preInstall

    install -Dm755 bin/srt-xtransmit -t $out/bin

    runHook postInstall
  '';

  meta = {
    description = "SRT xtransmit application for generating and receiving test traffic";
    homepage = "https://github.com/maxsharabayko/srt-xtransmit";
    license = lib.licenses.mpl20;
    maintainers = with lib.maintainers; [ randomizedcoder ];
    platforms = lib.platforms.unix;
    mainProgram = "srt-xtransmit";
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
    description = "Tool to measure IP bandwidth using UDP or TCP";
    platforms = lib.platforms.unix;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ randomizedcoder ];

    # prioritize iperf3
    priority = 10;