gst_all_1.gst-plugins-bad: 1.20.3 -> 1.22.2
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
, orc
|
, orc
|
||||||
, gstreamer
|
, gstreamer
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
|
, hotdoc
|
||||||
, enableZbar ? false
|
, enableZbar ? false
|
||||||
, faacSupport ? false
|
, faacSupport ? false
|
||||||
, faac
|
, faac
|
||||||
@@ -57,7 +58,7 @@
|
|||||||
, neon
|
, neon
|
||||||
, openal
|
, openal
|
||||||
, opencv4
|
, opencv4
|
||||||
, openexr
|
, openexr_3
|
||||||
, openh264
|
, openh264
|
||||||
, libopenmpt
|
, libopenmpt
|
||||||
, pango
|
, pango
|
||||||
@@ -80,6 +81,7 @@
|
|||||||
, libGLU
|
, libGLU
|
||||||
, libGL
|
, libGL
|
||||||
, addOpenGLRunpath
|
, addOpenGLRunpath
|
||||||
|
, gtk3
|
||||||
, libintl
|
, libintl
|
||||||
, game-music-emu
|
, game-music-emu
|
||||||
, openssl
|
, openssl
|
||||||
@@ -103,13 +105,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gst-plugins-bad";
|
pname = "gst-plugins-bad";
|
||||||
version = "1.20.3";
|
version = "1.22.2";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
|
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "sha256-ehHBO1XdHSOG3ZAiGeQcv83ajh4Ko+c4GGyVB0s12k8=";
|
hash = "sha256-PY+vHONALIU1zjqMThpslg5LVlXb2mtVlD25rHkCLQ8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@@ -129,6 +131,9 @@ stdenv.mkDerivation rec {
|
|||||||
gettext
|
gettext
|
||||||
gstreamer # for gst-tester-1.0
|
gstreamer # for gst-tester-1.0
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
|
|
||||||
|
# documentation
|
||||||
|
hotdoc
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
wayland # for wayland-scanner
|
wayland # for wayland-scanner
|
||||||
];
|
];
|
||||||
@@ -165,7 +170,7 @@ stdenv.mkDerivation rec {
|
|||||||
neon
|
neon
|
||||||
openal
|
openal
|
||||||
opencv4
|
opencv4
|
||||||
openexr
|
openexr_3
|
||||||
openh264
|
openh264
|
||||||
rtmpdump
|
rtmpdump
|
||||||
pango
|
pango
|
||||||
@@ -178,6 +183,7 @@ stdenv.mkDerivation rec {
|
|||||||
gnutls
|
gnutls
|
||||||
libGL
|
libGL
|
||||||
libGLU
|
libGLU
|
||||||
|
gtk3
|
||||||
game-music-emu
|
game-music-emu
|
||||||
openssl
|
openssl
|
||||||
libxml2
|
libxml2
|
||||||
@@ -243,10 +249,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
||||||
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
|
|
||||||
"-Dglib-asserts=disabled" # asserts should be disabled on stable releases
|
"-Dglib-asserts=disabled" # asserts should be disabled on stable releases
|
||||||
|
|
||||||
|
"-Damfcodec=disabled" # Windows-only
|
||||||
"-Davtp=disabled"
|
"-Davtp=disabled"
|
||||||
|
"-Ddirectshow=disabled" # Windows-only
|
||||||
"-Ddts=disabled" # required `libdca` library not packaged in nixpkgs as of writing, and marked as "BIG FAT WARNING: libdca is still in early development"
|
"-Ddts=disabled" # required `libdca` library not packaged in nixpkgs as of writing, and marked as "BIG FAT WARNING: libdca is still in early development"
|
||||||
"-Dzbar=${if enableZbar then "enabled" else "disabled"}"
|
"-Dzbar=${if enableZbar then "enabled" else "disabled"}"
|
||||||
"-Dfaac=${if faacSupport then "enabled" else "disabled"}"
|
"-Dfaac=${if faacSupport then "enabled" else "disabled"}"
|
||||||
@@ -282,6 +289,8 @@ stdenv.mkDerivation rec {
|
|||||||
"-Dbluez=${if bluezSupport then "enabled" else "disabled"}"
|
"-Dbluez=${if bluezSupport then "enabled" else "disabled"}"
|
||||||
]
|
]
|
||||||
++ lib.optionals (!stdenv.isLinux) [
|
++ lib.optionals (!stdenv.isLinux) [
|
||||||
|
"-Ddoc=disabled" # needs gstcuda to be enabled which is Linux-only
|
||||||
|
"-Dnvcodec=disabled" # Linux-only
|
||||||
"-Dva=disabled" # see comment on `libva` in `buildInputs`
|
"-Dva=disabled" # see comment on `libva` in `buildInputs`
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.isDarwin [
|
++ lib.optionals stdenv.isDarwin [
|
||||||
@@ -299,9 +308,12 @@ stdenv.mkDerivation rec {
|
|||||||
"-Dladspa=disabled" # requires lrdf
|
"-Dladspa=disabled" # requires lrdf
|
||||||
"-Dwebrtc=disabled" # requires libnice, which as of writing doesn't work on Darwin in nixpkgs
|
"-Dwebrtc=disabled" # requires libnice, which as of writing doesn't work on Darwin in nixpkgs
|
||||||
"-Dwildmidi=disabled" # see dependencies above
|
"-Dwildmidi=disabled" # see dependencies above
|
||||||
|
] ++ lib.optionals (!stdenv.isLinux || !stdenv.isx86_64) [
|
||||||
|
"-Dqsv=disabled" # Linux (and Windows) x86 only
|
||||||
] ++ lib.optionals (!gst-plugins-base.glEnabled) [
|
] ++ lib.optionals (!gst-plugins-base.glEnabled) [
|
||||||
"-Dgl=disabled"
|
"-Dgl=disabled"
|
||||||
] ++ lib.optionals (!gst-plugins-base.waylandEnabled) [
|
] ++ lib.optionals (!gst-plugins-base.waylandEnabled) [
|
||||||
|
"-Dgtk3=disabled" # Wayland-based GTK sink
|
||||||
"-Dwayland=disabled"
|
"-Dwayland=disabled"
|
||||||
] ++ lib.optionals (!gst-plugins-base.glEnabled) [
|
] ++ lib.optionals (!gst-plugins-base.glEnabled) [
|
||||||
# `applemedia/videotexturecache.h` requires `gst/gl/gl.h`,
|
# `applemedia/videotexturecache.h` requires `gst/gl/gl.h`,
|
||||||
@@ -325,11 +337,6 @@ stdenv.mkDerivation rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs \
|
patchShebangs \
|
||||||
scripts/extract-release-date-from-doap-file.py
|
scripts/extract-release-date-from-doap-file.py
|
||||||
|
|
||||||
# upstream bumps this version check one minor version at a time
|
|
||||||
# https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-bad/ext/opencv/meson.build#L74
|
|
||||||
substituteInPlace ext/opencv/meson.build \
|
|
||||||
--replace '< 4.7.0' '< 5.0.0'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# This package has some `_("string literal")` string formats
|
# This package has some `_("string literal")` string formats
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
diff --git a/sys/nvcodec/gstcudaloader.c b/sys/nvcodec/gstcudaloader.c
|
diff --git a/gst-libs/gst/cuda/gstcudaloader.c b/gst-libs/gst/cuda/gstcudaloader.c
|
||||||
index 4223ba1fbd..ca8bb5ceb1 100644
|
index fffcbefd2b..6f738d3af3 100644
|
||||||
--- a/sys/nvcodec/gstcudaloader.c
|
--- a/gst-libs/gst/cuda/gstcudaloader.c
|
||||||
+++ b/sys/nvcodec/gstcudaloader.c
|
+++ b/gst-libs/gst/cuda/gstcudaloader.c
|
||||||
@@ -135,6 +135,11 @@ gst_cuda_load_library (void)
|
@@ -165,6 +165,11 @@ gst_cuda_load_library (void)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
module = g_module_open (filename, G_MODULE_BIND_LAZY);
|
module = g_module_open (filename, G_MODULE_BIND_LAZY);
|
||||||
+
|
+
|
||||||
+ if (module == NULL) {
|
+ if (module == NULL) {
|
||||||
+ module = g_module_open("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY);
|
+ module = g_module_open ("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
if (module == NULL) {
|
if (module == NULL) {
|
||||||
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
|
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
diff --git a/sys/nvcodec/gstcuvidloader.c b/sys/nvcodec/gstcuvidloader.c
|
diff --git a/sys/nvcodec/gstcuvidloader.c b/sys/nvcodec/gstcuvidloader.c
|
||||||
index 3c7505ca36..eeb376fa80 100644
|
index e957e062e0..004ec2dcd5 100644
|
||||||
--- a/sys/nvcodec/gstcuvidloader.c
|
--- a/sys/nvcodec/gstcuvidloader.c
|
||||||
+++ b/sys/nvcodec/gstcuvidloader.c
|
+++ b/sys/nvcodec/gstcuvidloader.c
|
||||||
@@ -85,6 +85,11 @@ gst_cuvid_load_library (guint api_major_ver, guint api_minor_ver)
|
@@ -85,6 +85,11 @@ gst_cuvid_load_library (guint api_major_ver, guint api_minor_ver)
|
||||||
@@ -31,10 +31,10 @@ index 3c7505ca36..eeb376fa80 100644
|
|||||||
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
|
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
diff --git a/sys/nvcodec/gstnvenc.c b/sys/nvcodec/gstnvenc.c
|
diff --git a/sys/nvcodec/gstnvenc.c b/sys/nvcodec/gstnvenc.c
|
||||||
index 19637671ad..39858ccdee 100644
|
index 106857a954..3bab9989f0 100644
|
||||||
--- a/sys/nvcodec/gstnvenc.c
|
--- a/sys/nvcodec/gstnvenc.c
|
||||||
+++ b/sys/nvcodec/gstnvenc.c
|
+++ b/sys/nvcodec/gstnvenc.c
|
||||||
@@ -874,6 +874,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver)
|
@@ -907,6 +907,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver)
|
||||||
};
|
};
|
||||||
|
|
||||||
module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
|
module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);
|
||||||
|
|||||||
Reference in New Issue
Block a user