2022-02-20 05:27:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, libGL
|
|
|
|
, gst_all_1
|
|
|
|
, nv-codec-headers-11
|
|
|
|
, libva
|
|
|
|
, addOpenGLRunpath
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nvidia-vaapi-driver";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.0.7";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elFarto";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-c74XJW9e8sgjBuTpZQOgIvgEoP73aQlx6beE6bChYfw=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|