12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-hZVeW3svuVpwQhQz67uqTPZ7B9pisLCwHhXB2zMLygo=";
28 "-DNCNN_CMAKE_VERBOSE=1" # Only for debugging the build
32 "-DNCNN_BUILD_EXAMPLES=0"
33 "-DNCNN_BUILD_TOOLS=0"
34 "-DNCNN_SYSTEM_GLSLANG=1"
35 "-DNCNN_PYTHON=0" # Should be an attribute
37 "-DGLSLANG_TARGET_DIR=${glslang}/lib/cmake"
40 nativeBuildInputs = [ cmake ];
41 buildInputs = [ vulkan-headers vulkan-loader glslang opencv protobuf ];
44 description = "ncnn is a high-performance neural network inference framework optimized for the mobile platform";
45 homepage = "https://github.com/Tencent/ncnn";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ tilcreator ];