blob: d977947a9df3ebc10b2af0407bcd38168ba4a250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
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;
};
})
|