2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libvorbis, libtheora, speex }:
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# need pkg-config so that libshout installs ${out}/lib/pkgconfig/shout.pc
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "libshout";
|
|
|
|
version = "2.4.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "https://downloads.xiph.org/releases/libshout/${pname}-${version}.tar.gz";
|
2021-02-19 19:06:45 +00:00
|
|
|
sha256 = "sha256-2eVoZopnOZTr4/HrXyvuBuMjal25K40MSH4cD4hqaJA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ libvorbis libtheora speex ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "icecast 'c' language bindings";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Libshout is a library for communicating with and sending data to an icecast
|
|
|
|
server. It handles the socket connection, the timing of the data, and prevents
|
|
|
|
bad data from getting to the icecast server.
|
|
|
|
'';
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://www.icecast.org";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ jcumming ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "shout";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = with lib.platforms; unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|