2019-01-03 11:28:03 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, meson, ninja, pkgconfig, python3, gobject-introspection, gtk-doc, docbook_xsl, docbook_xml_dtd_412, glib, gupnp-igd, gst_all_1, gnutls }:
|
2009-12-27 15:22:00 +01:00
|
|
|
|
2012-03-13 20:06:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-03 11:28:03 +01:00
|
|
|
name = "libnice-0.1.15";
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
2013-02-23 22:20:42 +01:00
|
|
|
|
2009-12-27 15:22:00 +01:00
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://nice.freedesktop.org/releases/${name}.tar.gz";
|
2019-01-03 11:28:03 +01:00
|
|
|
sha256 = "1nl7fn07f4i513s9c1s1ic3rki8rm2d000wsf6f4157mb0zhya7p";
|
2009-12-27 15:22:00 +01:00
|
|
|
};
|
|
|
|
|
2019-01-03 11:28:03 +01: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 {
|
|
|
|
url = https://gitlab.freedesktop.org/libnice/libnice/commit/d470c4bf4f2449f7842df26ca1ce1efb63452bc6.patch;
|
|
|
|
sha256 = "0z74vizf92flfw1m83p7yz824vfykmnm0xbnk748bnnyq186i6mg";
|
|
|
|
})
|
|
|
|
|
|
|
|
# Fix test-different-number-streams
|
|
|
|
# https://gitlab.freedesktop.org/libnice/libnice/merge_requests/36
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://gitlab.freedesktop.org/libnice/libnice/commit/a38c2adfc4bed2a69dc02568417f0926dd555b9a.patch;
|
|
|
|
sha256 = "1rh4z4iknrimmm3b3v8ln8vl3dsqi91g4vf0dl85348kvnf0sv6z";
|
|
|
|
})
|
|
|
|
# Fix test-gstreamer
|
|
|
|
# https://gitlab.freedesktop.org/libnice/libnice/merge_requests/35
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://gitlab.freedesktop.org/libnice/libnice/commit/02de1fa1956105b09d9db4fd6331452b0ff0b8a2.patch;
|
|
|
|
sha256 = "12dymq1v20wj5n1cway4n3y8fkra1ffnpj5w7pbz38i612b82qw0";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig python3 gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_412 ];
|
2017-06-20 07:12:32 +02:00
|
|
|
buildInputs = [ gst_all_1.gstreamer gst_all_1.gst-plugins-base gnutls ];
|
2018-02-25 03:23:58 +01:00
|
|
|
propagatedBuildInputs = [ glib gupnp-igd ];
|
2009-12-27 15:22:00 +01:00
|
|
|
|
2019-01-03 11:28:03 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgupnp=enabled"
|
|
|
|
"-Dgstreamer=enabled"
|
|
|
|
"-Dignored-network-interface-prefix=enabled"
|
|
|
|
"-Dexamples=enabled"
|
|
|
|
"-Dtests=enabled"
|
|
|
|
"-Dgtk_doc=enabled"
|
|
|
|
"-Dintrospection=enabled"
|
|
|
|
];
|
|
|
|
|
2019-01-12 17:14:27 +01:00
|
|
|
# TODO; see #53293 etc.
|
|
|
|
#doCheck = true;
|
2018-07-18 01:10:30 +02:00
|
|
|
|
2018-10-18 21:15:37 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://nice.freedesktop.org/wiki/;
|
2010-09-15 14:57:49 +02:00
|
|
|
description = "The GLib ICE implementation";
|
|
|
|
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.'';
|
2018-10-18 21:15:37 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ lgpl21 mpl11 ];
|
2009-12-27 15:22:00 +01:00
|
|
|
};
|
|
|
|
}
|