Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, alsa-lib, libopus, ortp, bctoolbox }: 2 3stdenv.mkDerivation rec { 4 pname = "trx"; 5 version = "0.5"; 6 7 src = fetchurl { 8 url = "https://www.pogo.org.uk/~mark/trx/releases/${pname}-${version}.tar.gz"; 9 sha256 = "1jjgca92nifjhcr3n0fmpfr6f5gxlqyal2wmgdlgd7hx834r1if7"; 10 }; 11 12 # Makefile is currently missing -lbctoolbox so the build fails when linking 13 # the libraries. This patch adds that flag. 14 patches = [ 15 ./add_bctoolbox_ldlib.patch 16 ]; 17 18 buildInputs = [ alsa-lib libopus ortp bctoolbox ]; 19 makeFlags = [ "PREFIX=$(out)" ]; 20 21 meta = with lib; { 22 description = "A simple toolset for broadcasting live audio using RTP/UDP and Opus"; 23 homepage = "http://www.pogo.org.uk/~mark/trx/"; 24 license = licenses.gpl2; 25 maintainers = [ maintainers.hansjoergschurr ]; 26 platforms = platforms.linux; 27 }; 28}