2024-01-13 08:15:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2024-04-21 15:54:59 +00:00
|
|
|
, substituteAll
|
|
|
|
, addDriverRunpath
|
2024-01-13 08:15:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "libvpl";
|
|
|
|
version = "2.10.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "libvpl";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-2yfJo4iwI/h0CJ+mJJ3cAyG5S7KksUibwJHebF3MR+E=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DENABLE_DRI3=ON"
|
|
|
|
"-DENABLE_DRM=ON"
|
|
|
|
"-DENABLE_VA=ON"
|
|
|
|
"-DENABLE_WAYLAND=ON"
|
|
|
|
"-DENABLE_X11=ON"
|
|
|
|
"-DINSTALL_EXAMPLE_CODE=OFF"
|
|
|
|
"-DBUILD_TOOLS=OFF"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./opengl-driver-lib.patch;
|
|
|
|
inherit (addDriverRunpath) driverLink;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Intel Video Processing Library";
|
|
|
|
homepage = "https://intel.github.io/libvpl/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
})
|