2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-11-13 20:52:55 +00:00
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-11-13 20:52:55 +00:00
|
|
|
, python3
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, glib
|
|
|
|
, gupnp-igd
|
|
|
|
, gst_all_1
|
|
|
|
, gnutls
|
|
|
|
}:
|
2009-12-27 14:22:00 +00:00
|
|
|
|
2012-03-13 19:06:24 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-12-23 04:20:00 +00:00
|
|
|
pname = "libnice";
|
|
|
|
version = "0.1.18";
|
2019-01-03 10:28:03 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
2013-02-23 21:20:42 +00:00
|
|
|
|
2009-12-27 14:22:00 +00:00
|
|
|
src = fetchurl {
|
2020-12-23 04:20:00 +00:00
|
|
|
url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1x3kj9b3dy9m2h6j96wgywfamas1j8k2ca43k5v82kmml9dx5asy";
|
2009-12-27 14:22:00 +00:00
|
|
|
};
|
|
|
|
|
2019-01-03 10:28:03 +00:00
|
|
|
patches = [
|
|
|
|
# Fix generating data
|
|
|
|
# Note: upstream is not willing to merge our fix
|
|
|
|
# https://gitlab.freedesktop.org/libnice/libnice/merge_requests/35#note_98871
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://gitlab.freedesktop.org/libnice/libnice/commit/d470c4bf4f2449f7842df26ca1ce1efb63452bc6.patch";
|
2019-01-03 10:28:03 +00:00
|
|
|
sha256 = "0z74vizf92flfw1m83p7yz824vfykmnm0xbnk748bnnyq186i6mg";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-01-21 01:48:04 +00:00
|
|
|
nativeBuildInputs = [
|
2019-11-13 20:52:55 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-11-13 20:52:55 +00:00
|
|
|
python3
|
|
|
|
gobject-introspection
|
|
|
|
|
|
|
|
# documentation
|
2019-01-21 01:48:04 +00:00
|
|
|
gtk-doc
|
2019-11-13 20:52:55 +00:00
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gnutls
|
|
|
|
gupnp-igd
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
2019-01-21 01:48:04 +00:00
|
|
|
];
|
2009-12-27 14:22:00 +00:00
|
|
|
|
2019-01-03 10:28:03 +00:00
|
|
|
mesonFlags = [
|
2019-01-21 01:48:04 +00:00
|
|
|
"-Dgtk_doc=enabled" # Disabled by default as of libnice-0.1.15
|
|
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
2019-01-03 10:28:03 +00:00
|
|
|
];
|
|
|
|
|
2019-11-13 20:52:55 +00:00
|
|
|
# Tests are flaky
|
|
|
|
# see https://github.com/NixOS/nixpkgs/pull/53293#issuecomment-453739295
|
|
|
|
doCheck = false;
|
2018-07-18 00:10:30 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-11-13 20:52:55 +00:00
|
|
|
description = "GLib ICE implementation";
|
2010-09-15 13:57:49 +01:00
|
|
|
longDescription = ''
|
|
|
|
Libnice is an implementation of the IETF's Interactice Connectivity
|
|
|
|
Establishment (ICE) standard (RFC 5245) and the Session Traversal
|
|
|
|
Utilities for NAT (STUN) standard (RFC 5389).
|
|
|
|
|
|
|
|
It provides a GLib-based library, libnice and a Glib-free library,
|
|
|
|
libstun as well as GStreamer elements.'';
|
2020-12-23 04:20:00 +00:00
|
|
|
homepage = "https://libnice.freedesktop.org/";
|
2018-10-18 20:15:37 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ lgpl21 mpl11 ];
|
2009-12-27 14:22:00 +00:00
|
|
|
};
|
|
|
|
}
|