depot/third_party/nixpkgs/pkgs/development/libraries/nvidia-vaapi-driver/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

57 lines
1 KiB
Nix

{ stdenv
, fetchFromGitHub
, lib
, meson
, ninja
, pkg-config
, libdrm
, libGL
, gst_all_1
, nv-codec-headers-11
, libva
, addOpenGLRunpath
}:
stdenv.mkDerivation rec {
pname = "nvidia-vaapi-driver";
version = "0.0.11";
src = fetchFromGitHub {
owner = "elFarto";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mVVRpCyT374P1Vql0yPY0e5tNktHNJ8XHoixvxp3b20=";
};
patches = [
./0001-hardcode-install_dir.patch
];
nativeBuildInputs = [
meson
ninja
pkg-config
addOpenGLRunpath
];
buildInputs = [
libdrm
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";
changelog = "https://github.com/elFarto/nvidia-vaapi-driver/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers;[ nickcao ];
};
}