libnice: refactor; add patch for gupnp-igd 1.6.0
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From 7255d6376fad2c88eaadf1278ee8947181230866 Mon Sep 17 00:00:00 2001
|
||||
From: Your Name <you@example.com>
|
||||
Date: Sun, 16 Apr 2023 19:52:38 +0000
|
||||
Subject: [PATCH] Update for gupnp-igd-1.6
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
New gupnp-igd has been released.
|
||||
No significant changed in API so pkgconfig dependency can be simple
|
||||
bumped.
|
||||
|
||||
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
|
||||
---
|
||||
meson.build | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 6a733b73..c42fa138 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -285,7 +285,7 @@ gst_dep = dependency('gstreamer-base-1.0', version: gst_req,
|
||||
cdata.set('HAVE_GSTREAMER', gst_dep.found(), description: 'Build GStreamer plugin')
|
||||
|
||||
# GUPnP IGD
|
||||
-gupnp_igd_dep = dependency('gupnp-igd-1.0', version: gupnp_igd_req, required: get_option('gupnp'))
|
||||
+gupnp_igd_dep = dependency('gupnp-igd-1.6', version: gupnp_igd_req, required: get_option('gupnp'))
|
||||
cdata.set('HAVE_GUPNP', gupnp_igd_dep.found(), description: 'Use the GUPnP IGD library')
|
||||
|
||||
libm = cc.find_library('m', required: false)
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
@@ -18,7 +17,7 @@
|
||||
graphviz,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libnice";
|
||||
version = "0.1.22";
|
||||
|
||||
@@ -29,18 +28,14 @@ stdenv.mkDerivation rec {
|
||||
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz";
|
||||
url = "https://libnice.freedesktop.org/releases/libnice-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-pfckzwnq5QxBp1FxQdidpKYeyerKMtpKAHP67VQXrX4=";
|
||||
};
|
||||
|
||||
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";
|
||||
})
|
||||
# Bumps the gupnp_igd_dep version requested to 1.6
|
||||
# https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/255
|
||||
./gupnp-igd-bump.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -78,7 +73,7 @@ stdenv.mkDerivation rec {
|
||||
# see https://github.com/NixOS/nixpkgs/pull/53293#issuecomment-453739295
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "GLib ICE implementation";
|
||||
longDescription = ''
|
||||
Libnice is an implementation of the IETF's Interactice Connectivity
|
||||
@@ -88,10 +83,10 @@ stdenv.mkDerivation rec {
|
||||
It provides a GLib-based library, libnice and a Glib-free library,
|
||||
libstun as well as GStreamer elements.'';
|
||||
homepage = "https://libnice.freedesktop.org/";
|
||||
platforms = platforms.unix;
|
||||
license = with licenses; [
|
||||
platforms = lib.platforms.unix;
|
||||
license = with lib.licenses; [
|
||||
lgpl21
|
||||
mpl11
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user