mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
46 lines
824 B
Nix
46 lines
824 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
replaceVars,
|
|
addDriverRunpath,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libvpl";
|
|
version = "2.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "libvpl";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-TbneMexrGShBE83WRCHvECucG2/eYMtljwb3yvCTP7k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
];
|
|
|
|
patches = [
|
|
(replaceVars ./opengl-driver-lib.patch {
|
|
inherit (addDriverRunpath) driverLink;
|
|
})
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Intel Video Processing Library";
|
|
homepage = "https://intel.github.io/libvpl/";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|