nixpkgs-suyu/pkgs/tools/audio/trx/default.nix

29 lines
851 B
Nix
Raw Normal View History

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