2019-12-27 02:50:41 +00:00
|
|
|
{ stdenv, fetchurl, alsaLib, libopus, ortp, bctoolbox }:
|
2019-01-04 12:46:57 +00:00
|
|
|
|
2019-12-27 02:50:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "trx";
|
2020-03-27 08:33:05 +00:00
|
|
|
version = "0.5";
|
2019-01-04 12:46:57 +00:00
|
|
|
|
2019-12-27 02:50:41 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.pogo.org.uk/~mark/trx/releases/${pname}-${version}.tar.gz";
|
2020-03-27 08:33:05 +00:00
|
|
|
sha256 = "1jjgca92nifjhcr3n0fmpfr6f5gxlqyal2wmgdlgd7hx834r1if7";
|
2019-01-04 12:46:57 +00:00
|
|
|
};
|
|
|
|
|
2020-03-27 08:33:05 +00: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 12:46:57 +00:00
|
|
|
buildInputs = [ alsaLib libopus ortp bctoolbox ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple toolset for broadcasting live audio using RTP/UDP and Opus";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.pogo.org.uk/~mark/trx/";
|
2019-01-04 12:46:57 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.hansjoergschurr ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|