mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
2e279ed7ee
https://github.com/intel/libvpl/releases/tag/v2.10.2 https://github.com/intel/libvpl/releases/tag/v2.11.0 https://github.com/intel/libvpl/releases/tag/v2.12.0 https://github.com/intel/libvpl/releases/tag/v2.13.0
46 lines
834 B
Nix
46 lines
834 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, substituteAll
|
|
, addDriverRunpath
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libvpl";
|
|
version = "2.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "libvpl";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-H+pRdpk1B/QgsXaTxhQfm3JW5Plgz4esrUV1kKfjY1s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./opengl-driver-lib.patch;
|
|
inherit (addDriverRunpath) driverLink;
|
|
})
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Intel Video Processing Library";
|
|
homepage = "https://intel.github.io/libvpl/";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|