46 lines
		
	
	
		
			826 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			826 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   stdenv,
 | |
|   lib,
 | |
|   fetchFromGitHub,
 | |
|   cmake,
 | |
|   pkg-config,
 | |
|   replaceVars,
 | |
|   addDriverRunpath,
 | |
| }:
 | |
| 
 | |
| stdenv.mkDerivation (finalAttrs: {
 | |
|   pname = "libvpl";
 | |
|   version = "2.15.0";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "intel";
 | |
|     repo = "libvpl";
 | |
|     rev = "v${finalAttrs.version}";
 | |
|     hash = "sha256-aCoyIHgX3ftlk0CKg/cXNAVjuGI8GMT358GoiyaNjnI=";
 | |
|   };
 | |
| 
 | |
|   nativeBuildInputs = [
 | |
|     cmake
 | |
|     pkg-config
 | |
|   ];
 | |
| 
 | |
|   cmakeFlags = [
 | |
|     (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
 | |
|   ];
 | |
| 
 | |
|   patches = [
 | |
|     (replaceVars ./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;
 | |
|   };
 | |
| })
 | 
