Merge pull request #159753 from NickCao/nvidia-vaapi-driver
nvidia-vaapi-driver: init at 0.0.5
This commit is contained in:
commit
553d359dfa
2 changed files with 52 additions and 0 deletions
50
pkgs/development/libraries/nvidia-vaapi-driver/default.nix
Normal file
50
pkgs/development/libraries/nvidia-vaapi-driver/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ 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 = "0.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elFarto";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-2bycqKolVoaHK64XYcReteuaON9TjzrFhaG5kty28YY=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -19219,6 +19219,8 @@ with pkgs;
|
|||
|
||||
nvidia-texture-tools = callPackage ../development/libraries/nvidia-texture-tools { };
|
||||
|
||||
nvidia-vaapi-driver = callPackage ../development/libraries/nvidia-vaapi-driver { };
|
||||
|
||||
nvidia-video-sdk = callPackage ../development/libraries/nvidia-video-sdk { };
|
||||
|
||||
nvidia-optical-flow-sdk = callPackage ../development/libraries/nvidia-optical-flow-sdk { };
|
||||
|
|
Loading…
Reference in a new issue