3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/nvidia-vaapi-driver/default.nix
Kiskae 9332df94e1 nvidia-vaapi-driver: 0.0.7 > unstable-2022-12-01
Make the vaapi driver do nothing instead of crash on nvidia 525 drivers
2022-12-02 13:43:36 +01:00

51 lines
945 B
Nix

{ stdenv
, fetchFromGitHub
, lib
, meson
, ninja
, pkg-config
, libGL
, gst_all_1
, nv-codec-headers-11
, libva
, addOpenGLRunpath
}:
stdenv.mkDerivation rec {
pname = "nvidia-vaapi-driver";
version = "unstable-2022-12-01";
src = fetchFromGitHub {
owner = "elFarto";
repo = pname;
rev = "6e8b0d067c52c3a7e0c3de745337e6e733c59207";
sha256 = "sha256-HL/sjNPsLhzl8NZ/9l8in27vUrMkyUIcNr/+HhiaTT0=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
addOpenGLRunpath
];
buildInputs = [
libGL
gst_all_1.gstreamer
gst_all_1.gst-plugins-bad
nv-codec-headers-11
libva
];
postFixup = ''
addOpenGLRunpath "$out/lib/dri/nvidia_drv_video.so"
'';
meta = with lib;{
homepage = "https://github.com/elFarto/nvidia-vaapi-driver";
description = "A VA-API implemention using NVIDIA's NVDEC";
license = licenses.mit;
maintainers = with maintainers;[ nickcao ];
};
}