Merge pull request #223336 from LibreCybernetics/wno-error-nvidia-vaapi-driver

nvidia-vaapi-driver: add `-Wno-error`
This commit is contained in:
Nick Cao 2023-03-27 13:44:59 +08:00 committed by GitHub
commit 746efed6f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,14 @@ stdenv.mkDerivation rec {
libva
];
# Note: Attempt to remove on next release after 0.0.9
# nixpkgs reference: https://github.com/NixOS/nixpkgs/pull/221978#issuecomment-1483892437
# upstream: https://github.com/elFarto/nvidia-vaapi-driver/issues/188
NIX_CFLAGS_COMPILE = [
"-Wno-error=format="
"-Wno-error=int-conversion"
];
postFixup = ''
addOpenGLRunpath "$out/lib/dri/nvidia_drv_video.so"
'';