Skip to content

Commit

Permalink
Merge #306016: gst_all_1.*: follow-up for 1.22.9 -> 1.24.2 bump
Browse files Browse the repository at this point in the history
...into staging-next
  • Loading branch information
vcunat committed Apr 23, 2024
2 parents d42abe5 + 57f6ac6 commit 6cbdbb6
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/compilers/orc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ in stdenv.mkDerivation rec {
# under the 3-clause BSD license. The rest is 2-clause BSD license.
license = with licenses; [ bsd3 bsd2 ];
platforms = platforms.unix;
maintainers = [ ];
maintainers = with maintainers; [ lilyinstarlight ];
};
}
14 changes: 8 additions & 6 deletions pkgs/development/libraries/gstreamer/bad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
, flite
, gsm
, json-glib
, libajantv2
, libaom
, libdc1394
, libde265
Expand Down Expand Up @@ -152,7 +153,7 @@ stdenv.mkDerivation rec {
liblc3
libass
libkate
webrtc-audio-processing_1 # required by isac
webrtc-audio-processing_1
libbs2b
libmodplug
openjpeg
Expand Down Expand Up @@ -220,6 +221,7 @@ stdenv.mkDerivation rec {

chromaprint
flite
libajantv2
libdrm
libgudev
sbc
Expand Down Expand Up @@ -263,7 +265,7 @@ stdenv.mkDerivation rec {
"-Damfcodec=disabled" # Windows-only
"-Davtp=disabled"
"-Ddirectshow=disabled" # Windows-only
"-Dqt6d3d11=disabled"
"-Dqt6d3d11=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"
"-Dzbar=${if enableZbar then "enabled" else "disabled"}"
"-Dfaac=${if faacSupport then "enabled" else "disabled"}"
Expand All @@ -283,7 +285,6 @@ stdenv.mkDerivation rec {
"-Dmusepack=disabled"
"-Dopenni2=disabled" # not packaged in nixpkgs as of writing
"-Dopensles=disabled" # not packaged in nixpkgs as of writing
"-Dsvtav1=disabled" # not packaged in nixpkgs as of writing
"-Dsvthevcenc=disabled" # required `SvtHevcEnc` library not packaged in nixpkgs as of writing
"-Dteletext=disabled" # required `zvbi` library not packaged in nixpkgs as of writing
"-Dtinyalsa=disabled" # not packaged in nixpkgs as of writing
Expand All @@ -307,8 +308,8 @@ stdenv.mkDerivation rec {
"-Dva=disabled" # see comment on `libva` in `buildInputs`
] ++ lib.optionals (!stdenv.isLinux || !guiSupport) [
"-Ddirectfb=disabled"
]
++ lib.optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
"-Daja=disabled"
"-Dchromaprint=disabled"
"-Dflite=disabled"
"-Dkms=disabled" # renders to libdrm output
Expand All @@ -317,14 +318,15 @@ stdenv.mkDerivation rec {
"-Dspandsp=disabled"
"-Ddvb=disabled"
"-Dfbdev=disabled"
"-Duvcgadget=disabled" # requires gudev
"-Duvch264=disabled" # requires gudev
"-Dv4l2codecs=disabled" # requires gudev
"-Dladspa=disabled" # requires lrdf
] ++ lib.optionals (!stdenv.isLinux || !stdenv.isx86_64) [
"-Dqsv=disabled" # Linux (and Windows) x86 only
] ++ lib.optionals (!gst-plugins-base.glEnabled) [
"-Dgl=disabled"
] ++ lib.optionals (!gst-plugins-base.waylandEnabled) [
] ++ lib.optionals (!gst-plugins-base.waylandEnabled || !guiSupport) [
"-Dgtk3=disabled" # Wayland-based GTK sink
"-Dwayland=disabled"
] ++ lib.optionals (!gst-plugins-base.glEnabled) [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gstreamer/bad/fix-paths.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 11718b8..d4144c1 100644

module = g_module_open (filename, G_MODULE_BIND_LAZY);
+
+ if (module == NULL) {
+ if (module == nullptr) {
+ module = g_module_open ("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY);
+ }
+
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/gstreamer/base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional (!enableAlsa) "-Dalsa=disabled"
++ lib.optional (!enableCdparanoia) "-Dcdparanoia=disabled"
++ lib.optionals stdenv.isDarwin [
"-Ddrm=disabled"
"-Dlibvisual=disabled"
];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gstreamer/good/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ stdenv.mkDerivation rec {
bzip2
libdv
libvpx
libdrm
speex
opencore-amr
flac
Expand Down Expand Up @@ -148,6 +147,7 @@ stdenv.mkDerivation rec {
]) ++ lib.optionals stdenv.isDarwin [
Cocoa
] ++ lib.optionals stdenv.isLinux [
libdrm
libGL
libv4l
libpulseaudio
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/libraries/gstreamer/ugly/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
, x264
, libintl
, lib
, opencore-amr
, IOKit
, CoreFoundation
, DiskArbitration
Expand Down Expand Up @@ -49,7 +48,6 @@ stdenv.mkDerivation rec {
gst-plugins-base
orc
libintl
opencore-amr
] ++ lib.optionals enableGplPlugins [
a52dec
libcdio
Expand Down
15 changes: 15 additions & 0 deletions pkgs/development/libraries/libajantv2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ stdenv.mkDerivation rec {
pkg-config
];

postInstall = ''
mkdir -p "$out/lib/pkgconfig"
cat >"$out/lib/pkgconfig/libajantv2.pc" <<EOF
prefix=$out
libdir=\''${prefix}/lib
includedir=\''${prefix}/include/ajalibraries
Name: libajantv2
Description: Library for controlling AJA NTV2 video devices
Version: ${version}
Libs: -L\''${libdir} -lajantv2
Cflags: -I\''${includedir} -I\''${includedir}/ajantv2/includes
EOF
'';

meta = with lib; {
description = "AJA NTV2 Open Source Static Libs and Headers for building applications that only wish to statically link against";
homepage = "https://github.com/aja-video/ntv2";
Expand Down
5 changes: 4 additions & 1 deletion pkgs/development/libraries/liblc3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ stdenv.mkDerivation {
ninja
];

# LTO does not work on Darwin: https://github.com/NixOS/nixpkgs/issues/19098
mesonFlags = lib.optionals stdenv.isDarwin [ "-Db_lto=false" ];

meta = with lib; {
description = "LC3 (Low Complexity Communication Codec) is an efficient low latency audio codec";
homepage = "https://github.com/google/liblc3";
license = licenses.asl20;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ jansol ];
};
}
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/wheezy-template/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

buildPythonPackage rec {
pname = "wheezy.template";
version = "3.1.0";
version = "3.2.2";

src = fetchPypi {
inherit pname version;
hash = "sha256-4RAHysczaNzhKZjjS2bEdgFrtGFHH/weTVboQALslg8=";
hash = "sha256-hknPXHGPPNjRAr0TYVosPaTntsjwQjOKZBCU+qFlIHw=";
};

pythonImportsCheck = [ "wheezy.template" ];
Expand Down

0 comments on commit 6cbdbb6

Please sign in to comment.