srt-xtransmit: init at 0.2.0
This commit is contained in:
parent
caeb92e9dc
commit
ca83eeea5f
@@ -0,0 +1,53 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user