From ab955c7e279c213ba57d199114a0927f665f7c4a Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Fri, 4 Apr 2025 11:58:49 +0200 Subject: [PATCH] gst_all_1.gst-plugins-bad: disable nvcodec on aarch64 This fails to build, see: https://hydra.nixos.org/build/294125614/log Setting nvmm support does end up building the required gstcuda module. However, doing so requires closed-source proprietary development libraries not yet present in nixpkgs. This only affects linux on non-x86 processors. Other platforms are zero rebuilds. --- pkgs/development/libraries/gstreamer/bad/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index e8f850f32f1ba..36dbc96df1ffe 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -340,7 +340,9 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals (!stdenv.hostPlatform.isLinux) [ "-Ddoc=disabled" # needs gstcuda to be enabled which is Linux-only - "-Dnvcodec=disabled" # Linux-only + ] + ++ lib.optionals (!stdenv.hostPlatform.isLinux || !stdenv.hostPlatform.isx86) [ + "-Dnvcodec=disabled" # Linux-only, broken on non-x86 ] ++ lib.optionals (!stdenv.hostPlatform.isLinux || !gst-plugins-base.waylandEnabled) [ "-Dva=disabled" # see comment on `libva` in `buildInputs`