mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
waifu2x-converter-cpp: add OpenCL support
This commit is contained in:
parent
c69dd49995
commit
ca3dd4b52f
@ -1,4 +1,4 @@
|
||||
{ cmake, fetchFromGitHub, opencv3, stdenv, ocl-icd, opencl-headers
|
||||
{ cmake, fetchFromGitHub, makeWrapper, opencv3, stdenv, ocl-icd, opencl-headers
|
||||
, cudaSupport ? false, cudatoolkit ? null
|
||||
}:
|
||||
|
||||
@ -19,10 +19,14 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
opencv3 opencl-headers ocl-icd
|
||||
ocl-icd opencv3 opencl-headers
|
||||
] ++ stdenv.lib.optional cudaSupport cudatoolkit;
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/waifu2x-converter-cpp --prefix LD_LIBRARY_PATH : "${ocl-icd}/lib"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Improved fork of Waifu2X C++ using OpenCL and OpenCV";
|
||||
|
Loading…
Reference in New Issue
Block a user