2021-06-10 02:57:09 +00:00
|
|
|
{ lib, stdenv, fetchurl, alsa-lib, 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
|
|
|
|
];
|
|
|
|
|
2021-06-10 02:57:09 +00:00
|
|
|
buildInputs = [ alsa-lib libopus ortp bctoolbox ];
|
2019-01-04 12:46:57 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-04 12:46:57 +00:00
|
|
|
description = "Simple toolset for broadcasting live audio using RTP/UDP and Opus";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.pogo.org.uk/~mark/trx/";
|
2024-04-26 11:35:31 +00:00
|
|
|
license = licenses.gpl2Only;
|
2019-01-04 12:46:57 +00:00
|
|
|
maintainers = [ maintainers.hansjoergschurr ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|