nixpkgs/pkgs/by-name/tr/trx/package.nix

29 lines
853 B
Nix
Raw Normal View History

{ 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
];
buildInputs = [ alsa-lib libopus ortp bctoolbox ];
2019-01-04 12:46:57 +00:00
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Simple toolset for broadcasting live audio using RTP/UDP and Opus";
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;
};
}