sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / li / libshout / package.nix
blob3ba32d1f8e0484a12b7b7d3d5ec5ae77976fb37f
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6   pkg-config,
7   openssl,
8   libvorbis,
9   libtheora,
10   speex,
13 # need pkg-config so that libshout installs ${out}/lib/pkgconfig/shout.pc
15 stdenv.mkDerivation rec {
16   pname = "libshout";
17   version = "2.4.6";
19   src = fetchurl {
20     url = "https://downloads.xiph.org/releases/libshout/${pname}-${version}.tar.gz";
21     sha256 = "sha256-OcvU8O/f3cl1XYghfkf48tcQj6dn+dWKK6JqFtj3yRA=";
22   };
24   patches = [
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.
27     (fetchpatch {
28       url = "https://gitlab.xiph.org/xiph/icecast-libshout/-/commit/600fa105a799986efcccddfedfdfd3e9a1988cd0.patch";
29       hash = "sha256-XjogfcQJBPZX9MPAbNJyXaFZNekL1pabvtTT7N+cz+s=";
30     })
31     (fetchpatch {
32       url = "https://gitlab.xiph.org/xiph/icecast-libshout/-/commit/8ab2de318d55c9d0987ffae7d9b94b365af732c1.patch";
33       hash = "sha256-0+Wp2Xu59ESCJfoDcwAJHuAJyzMsaBe7f8Js3/ren2g=";
34     })
35   ];
37   outputs = [
38     "out"
39     "dev"
40     "doc"
41   ];
43   depsBuildBuild = [ pkg-config ];
44   nativeBuildInputs = [ pkg-config ];
45   propagatedBuildInputs = [
46     openssl
47     libvorbis
48     libtheora
49     speex
50   ];
52   meta = {
53     description = "icecast 'c' language bindings";
55     longDescription = ''
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.
59     '';
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;
66   };