2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, alsaLib, libopus, ortp, bctoolbox }:
|
2019-01-04 13:46:57 +01:00
|
|
|
|
2019-12-27 03:50:41 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "trx";
|
2020-03-27 09:33:05 +01:00
|
|
|
version = "0.5";
|
2019-01-04 13:46:57 +01:00
|
|
|
|
2019-12-27 03:50:41 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.pogo.org.uk/~mark/trx/releases/${pname}-${version}.tar.gz";
|
2020-03-27 09:33:05 +01:00
|
|
|
sha256 = "1jjgca92nifjhcr3n0fmpfr6f5gxlqyal2wmgdlgd7hx834r1if7";
|
2019-01-04 13:46:57 +01:00
|
|
|
};
|
|
|
|
|
2020-03-27 09:33:05 +01:00
|
|
|
# Makefile is currently missing -lbctoolbox so the build fails when linking
|
|
|
|
# the libraries. This patch adds that flag.
|
|
|
|
patches = [
|
|
|
|
./add_bctoolbox_ldlib.patch
|
|
|
|
];
|
|
|
|
|
2019-01-04 13:46:57 +01:00
|
|
|
buildInputs = [ alsaLib libopus ortp bctoolbox ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-04 13:46:57 +01:00
|
|
|
description = "A simple toolset for broadcasting live audio using RTP/UDP and Opus";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.pogo.org.uk/~mark/trx/";
|
2019-01-04 13:46:57 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.hansjoergschurr ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|