54 lines
1,014 B
Nix
54 lines
1,014 B
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.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elFarto";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-j6AIleVZCgV7CD7nP/dKz5we3sUW9pldy0QKi8xwXB0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|