Files
nixpkgs/pkgs/development/libraries/libva/1.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

74 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
autoreconfHook,
libX11,
pkg-config,
libXext,
libdrm,
libXfixes,
wayland,
wayland-scanner,
libffi,
libGL,
mesa,
minimal ? false,
libva1-minimal,
}:
stdenv.mkDerivation rec {
pname = "libva" + lib.optionalString minimal "-minimal";
# nixpkgs-update: no auto update
version = "1.8.3";
src = fetchFromGitHub {
owner = "intel";
repo = "libva";
rev = version;
sha256 = "sha256-ur59cqdZqXIY2dDUSie9XsxyRomVBxIW2IVKAgWYC38=";
};
outputs = [
"dev"
"out"
];
nativeBuildInputs = [
autoreconfHook
pkg-config
wayland-scanner
];
buildInputs = [
libdrm
]
++ lib.optionals (!minimal) [
libva1-minimal
libX11
libXext
libXfixes
wayland
libffi
libGL
];
# TODO: share libs between minimal and !minimal - perhaps just symlink them
# Add FHS paths for non-NixOS applications.
configureFlags =
lib.optionals stdenv.hostPlatform.isLinux [
"--with-drivers-path=${mesa.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri"
]
++ lib.optionals (!minimal) [ "--enable-glx" ];
installFlags = [ "dummy_drv_video_ladir=$(out)/lib/dri" ];
meta = {
homepage = "https://www.freedesktop.org/wiki/Software/vaapi/";
license = lib.licenses.mit;
description = "VAAPI library: Video Acceleration API";
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}