nixpkgs/pkgs/development/libraries/libva/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, fetchpatch, meson, pkg-config, ninja, wayland
, libdrm
, minimal ? false, libva-minimal
, libX11, libXext, libXfixes, libffi, libGL
, mesa
2015-03-28 20:52:03 +00:00
}:
stdenv.mkDerivation rec {
name = "libva-${lib.optionalString minimal "minimal-"}${version}";
2021-06-18 11:33:01 +00:00
version = "2.12.0";
src = fetchFromGitHub {
2020-04-23 18:51:52 +00:00
owner = "intel";
repo = "libva";
rev = version;
2021-06-18 11:33:01 +00:00
sha256 = "1zfv4kjx0715sy62lkpv0s31f9xwy232z5zwqi5all4w1jr630i7";
};
outputs = [ "dev" "out" ];
nativeBuildInputs = [ meson pkg-config ninja wayland ];
buildInputs = [ libdrm ]
++ lib.optionals (!minimal) [ libva-minimal libX11 libXext libXfixes wayland libffi libGL ];
# TODO: share libs between minimal and !minimal - perhaps just symlink them
mesonFlags = [
# Add FHS paths for non-NixOS applications:
"-Ddriverdir=${mesa.drivers.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri"
];
meta = with lib; {
2020-04-23 18:51:52 +00:00
description = "An implementation for VA-API (Video Acceleration API)";
longDescription = ''
VA-API is an open-source library and API specification, which provides
access to graphics hardware acceleration capabilities for video
processing. It consists of a main library (this package) and
driver-specific acceleration backends for each supported hardware vendor.
'';
homepage = "https://01.org/linuxmedia/vaapi";
changelog = "https://raw.githubusercontent.com/intel/libva/${version}/NEWS";
2014-08-04 06:19:52 +00:00
license = licenses.mit;
2020-04-23 18:51:52 +00:00
maintainers = with maintainers; [ primeos ];
platforms = platforms.unix;
};
}