deepin-ocr-plugin-manager: init at unstable-2023-07-10
This commit is contained in:
@@ -14,6 +14,7 @@ let
|
||||
qt5platform-plugins = callPackage ./library/qt5platform-plugins { };
|
||||
qt5integration = callPackage ./library/qt5integration { };
|
||||
deepin-wayland-protocols = callPackage ./library/deepin-wayland-protocols { };
|
||||
deepin-ocr-plugin-manager = callPackage ./library/deepin-ocr-plugin-manager { };
|
||||
dwayland = callPackage ./library/dwayland { };
|
||||
dde-qt-dbus-factory = callPackage ./library/dde-qt-dbus-factory { };
|
||||
disomaster = callPackage ./library/disomaster { };
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, cmake
|
||||
, qttools
|
||||
, wrapQtAppsHook
|
||||
, libisoburn
|
||||
, ncnn
|
||||
, opencv
|
||||
, vulkan-headers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "deepin-ocr-plugin-manager";
|
||||
version = "unstable-2023-07-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = "9b5c9e57c83b5adde383ed404b73f9dcbf5e6a48";
|
||||
hash = "sha256-U5lxAKTaQvvlqbqRezPIcBGg+DpF1hZ204Y1+8dt14U=";
|
||||
};
|
||||
|
||||
# don't use vendored opencv
|
||||
postPatch = ''
|
||||
substituteInPlace src/CMakeLists.txt \
|
||||
--replace "opencv_mobile" "opencv4"
|
||||
substituteInPlace src/paddleocr-ncnn/paddleocr.cpp \
|
||||
--replace "/usr" "$out"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
qttools
|
||||
pkg-config
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ncnn
|
||||
opencv
|
||||
vulkan-headers
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Plugin manager of optical character recognition for DDE";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-ocr-plugin-manager";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.deepin.members;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user