8 , gobject-introspection
19 stdenv.mkDerivation rec {
23 outputs = [ "bin" "out" "dev" ]
24 ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
27 url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz";
28 sha256 = "1x3kj9b3dy9m2h6j96wgywfamas1j8k2ca43k5v82kmml9dx5asy";
33 # Note: upstream is not willing to merge our fix
34 # https://gitlab.freedesktop.org/libnice/libnice/merge_requests/35#note_98871
36 url = "https://gitlab.freedesktop.org/libnice/libnice/commit/d470c4bf4f2449f7842df26ca1ce1efb63452bc6.patch";
37 sha256 = "0z74vizf92flfw1m83p7yz824vfykmnm0xbnk748bnnyq186i6mg";
57 gst_all_1.gst-plugins-base
62 propagatedBuildInputs = [
67 "-Dgtk_doc=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
68 "-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
69 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
73 # see https://github.com/NixOS/nixpkgs/pull/53293#issuecomment-453739295
77 description = "GLib ICE implementation";
79 Libnice is an implementation of the IETF's Interactice Connectivity
80 Establishment (ICE) standard (RFC 5245) and the Session Traversal
81 Utilities for NAT (STUN) standard (RFC 5389).
83 It provides a GLib-based library, libnice and a Glib-free library,
84 libstun as well as GStreamer elements.'';
85 homepage = "https://libnice.freedesktop.org/";
86 platforms = platforms.linux;
87 license = with licenses; [ lgpl21 mpl11 ];