13 # need pkg-config so that libshout installs ${out}/lib/pkgconfig/shout.pc
15 stdenv.mkDerivation rec {
20 url = "https://downloads.xiph.org/releases/libshout/${pname}-${version}.tar.gz";
21 sha256 = "sha256-OcvU8O/f3cl1XYghfkf48tcQj6dn+dWKK6JqFtj3yRA=";
25 # Fixes building libshout with clang. Can be dropped once the following MR is merged:
26 # https://gitlab.xiph.org/xiph/icecast-libshout/-/merge_requests/4.
28 url = "https://gitlab.xiph.org/xiph/icecast-libshout/-/commit/600fa105a799986efcccddfedfdfd3e9a1988cd0.patch";
29 hash = "sha256-XjogfcQJBPZX9MPAbNJyXaFZNekL1pabvtTT7N+cz+s=";
32 url = "https://gitlab.xiph.org/xiph/icecast-libshout/-/commit/8ab2de318d55c9d0987ffae7d9b94b365af732c1.patch";
33 hash = "sha256-0+Wp2Xu59ESCJfoDcwAJHuAJyzMsaBe7f8Js3/ren2g=";
43 depsBuildBuild = [ pkg-config ];
44 nativeBuildInputs = [ pkg-config ];
45 propagatedBuildInputs = [
53 description = "icecast 'c' language bindings";
56 Libshout is a library for communicating with and sending data to an icecast
57 server. It handles the socket connection, the timing of the data, and prevents
58 bad data from getting to the icecast server.
61 homepage = "https://www.icecast.org";
62 license = lib.licenses.gpl2;
63 maintainers = with lib.maintainers; [ jcumming ];
64 mainProgram = "shout";
65 platforms = with lib.platforms; unix;