mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-06 04:40:10 +00:00
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
lib,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
libdrm,
|
|
libGL,
|
|
gst_all_1,
|
|
nv-codec-headers-11,
|
|
libva,
|
|
addDriverRunpath,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nvidia-vaapi-driver";
|
|
version = "0.0.18";
|
|
|
|
strictDeps = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elFarto";
|
|
repo = "nvidia-vaapi-driver";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-cEEPRKoWtNXk8LsDbkhNjnIY7UD1rfYbv2Q6ThG0YLg=";
|
|
};
|
|
|
|
patches = [
|
|
./0001-hardcode-install_dir.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
addDriverRunpath
|
|
];
|
|
|
|
buildInputs = [
|
|
libdrm
|
|
libGL
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-bad
|
|
nv-codec-headers-11
|
|
libva
|
|
];
|
|
|
|
postFixup = ''
|
|
addDriverRunpath "$out/lib/dri/nvidia_drv_video.so"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/elFarto/nvidia-vaapi-driver";
|
|
description = "VA-API implementation using NVIDIA's NVDEC";
|
|
changelog = "https://github.com/elFarto/nvidia-vaapi-driver/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
})
|