diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-09-16 08:50:56 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-09-16 08:50:56 +0000 |
commit | c51a27c0e7727fcd2be7d2d7d275f365ab1235be (patch) | |
tree | c6f917179329e0cad02bf8b818569fe6e905ab13 /nixpkgs/pkgs/applications/video | |
parent | 9d1daa60832979d5d361dfdac136fb9e5a1af2c5 (diff) | |
parent | ace5093e36ab1e95cb9463863491bee90d5a4183 (diff) | |
download | nixlib-c51a27c0e7727fcd2be7d2d7d275f365ab1235be.tar nixlib-c51a27c0e7727fcd2be7d2d7d275f365ab1235be.tar.gz nixlib-c51a27c0e7727fcd2be7d2d7d275f365ab1235be.tar.bz2 nixlib-c51a27c0e7727fcd2be7d2d7d275f365ab1235be.tar.lz nixlib-c51a27c0e7727fcd2be7d2d7d275f365ab1235be.tar.xz nixlib-c51a27c0e7727fcd2be7d2d7d275f365ab1235be.tar.zst nixlib-c51a27c0e7727fcd2be7d2d7d275f365ab1235be.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/applications/video')
3 files changed, 19 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/applications/video/mpv/scripts/autoload.nix b/nixpkgs/pkgs/applications/video/mpv/scripts/autoload.nix index 8f09070c5f4f..c4a85c50d938 100644 --- a/nixpkgs/pkgs/applications/video/mpv/scripts/autoload.nix +++ b/nixpkgs/pkgs/applications/video/mpv/scripts/autoload.nix @@ -12,7 +12,7 @@ stdenvNoCC.mkDerivation rec { passthru.scriptName = "autoload.lua"; meta = { - description = "This script automatically loads playlist entries before and after the the currently played file"; + description = "This script automatically loads playlist entries before and after the currently played file"; homepage = "https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua"; maintainers = [ lib.maintainers.dawidsowa ]; license = lib.licenses.gpl2Plus; diff --git a/nixpkgs/pkgs/applications/video/obs-studio/plugins/wlrobs.nix b/nixpkgs/pkgs/applications/video/obs-studio/plugins/wlrobs.nix index 5ee226c24827..e309447d9527 100644 --- a/nixpkgs/pkgs/applications/video/obs-studio/plugins/wlrobs.nix +++ b/nixpkgs/pkgs/applications/video/obs-studio/plugins/wlrobs.nix @@ -5,14 +5,14 @@ stdenv.mkDerivation { pname = "wlrobs"; - version = "unstable-2022-10-06"; + version = "unstable-2023-08-23"; src = fetchFromSourcehut { vc = "hg"; owner = "~scoopta"; repo = "wlrobs"; - rev = "78be323b25e1365f5c8f9dcba6938063ca10f71f"; - sha256 = "sha256-/VemJkk695BdSDsODmYIPdhPwggzIhBi/0m6P+AYfx0="; + rev = "f72d5cb3cbbd3983ae6cfd86cb1940be7372681c"; + hash = "sha256-hiM0d38SSUqbyisP3fAtKRLBDjVKZdU2U1xyXci7yNk="; }; nativeBuildInputs = [ meson pkg-config ninja ]; diff --git a/nixpkgs/pkgs/applications/video/vlc/default.nix b/nixpkgs/pkgs/applications/video/vlc/default.nix index bb0a26e94fb3..13f8f40ed635 100644 --- a/nixpkgs/pkgs/applications/video/vlc/default.nix +++ b/nixpkgs/pkgs/applications/video/vlc/default.nix @@ -1,5 +1,6 @@ { lib , stdenv +, pkgsBuildBuild , fetchurl , fetchpatch , SDL @@ -110,12 +111,14 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ autoreconfHook + lua5 perl pkg-config removeReferencesTo unzip wrapGAppsHook ] + ++ optional chromecastSupport protobuf ++ optionals withQt5 [ wrapQtAppsHook ] ++ optionals waylandSupport [ wayland @@ -204,7 +207,8 @@ stdenv.mkDerivation (finalAttrs: { env = { # vlc depends on a c11-gcc wrapper script which we don't have so we need to # set the path to the compiler - BUILDCC = "${stdenv.cc}/bin/gcc"; + BUILDCC = "${pkgsBuildBuild.stdenv.cc}/bin/gcc"; + PKG_CONFIG_WAYLAND_SCANNER_WAYLAND_SCANNER = "wayland-scanner"; } // lib.optionalAttrs (!stdenv.hostPlatform.isAarch) { LIVE555_PREFIX = live555; }; @@ -227,6 +231,11 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace modules/text_renderer/freetype/platform_fonts.h --replace \ /usr/share/fonts/truetype/freefont ${freefont_ttf}/share/fonts/truetype + '' + lib.optionalString (!stdenv.hostPlatform.canExecute stdenv.buildPlatform) '' + # Upstream luac can't cross compile, so we have to install the lua + # sources, not bytecode: + # https://www.lua.org/wshop13/Jericke.pdf#page=39 + substituteInPlace share/Makefile.am --replace $'.luac \\\n' $'.lua \\\n' ''; enableParallelBuilding = true; @@ -240,9 +249,13 @@ stdenv.mkDerivation (finalAttrs: { # - Touch plugins (plugins cache keyed off mtime and file size: # https://github.com/NixOS/nixpkgs/pull/35124#issuecomment-370552830 # - Remove references to the Qt development headers (used in error messages) + # + # pkgsBuildBuild is used here because buildPackages.libvlc somehow + # depends on a qt5.qttranslations that doesn't build, even though it + # should be the same as pkgsBuildBuild.qt5.qttranslations. postFixup = '' find $out/lib/vlc/plugins -exec touch -d @1 '{}' ';' - $out/lib/vlc/vlc-cache-gen $out/vlc/plugins + ${if stdenv.buildPlatform.canExecute stdenv.hostPlatform then "$out" else pkgsBuildBuild.libvlc}/lib/vlc/vlc-cache-gen $out/vlc/plugins '' + optionalString withQt5 '' remove-references-to -t "${qtbase.dev}" $out/lib/vlc/plugins/gui/libqt_plugin.so ''; |