deepin-ocr-plugin-manager: init at unstable-2023-07-10

rewine 7ed1e608 540b8c45

+61
+1
pkgs/desktops/deepin/default.nix
··· 14 qt5platform-plugins = callPackage ./library/qt5platform-plugins { }; 15 qt5integration = callPackage ./library/qt5integration { }; 16 deepin-wayland-protocols = callPackage ./library/deepin-wayland-protocols { }; 17 dwayland = callPackage ./library/dwayland { }; 18 dde-qt-dbus-factory = callPackage ./library/dde-qt-dbus-factory { }; 19 disomaster = callPackage ./library/disomaster { };
··· 14 qt5platform-plugins = callPackage ./library/qt5platform-plugins { }; 15 qt5integration = callPackage ./library/qt5integration { }; 16 deepin-wayland-protocols = callPackage ./library/deepin-wayland-protocols { }; 17 + deepin-ocr-plugin-manager = callPackage ./library/deepin-ocr-plugin-manager { }; 18 dwayland = callPackage ./library/dwayland { }; 19 dde-qt-dbus-factory = callPackage ./library/dde-qt-dbus-factory { }; 20 disomaster = callPackage ./library/disomaster { };
+60
pkgs/desktops/deepin/library/deepin-ocr-plugin-manager/default.nix
···
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , pkg-config 5 + , cmake 6 + , qttools 7 + , wrapQtAppsHook 8 + , libisoburn 9 + , ncnn 10 + , opencv 11 + , vulkan-headers 12 + }: 13 + 14 + stdenv.mkDerivation rec { 15 + pname = "deepin-ocr-plugin-manager"; 16 + version = "unstable-2023-07-10"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "linuxdeepin"; 20 + repo = pname; 21 + rev = "9b5c9e57c83b5adde383ed404b73f9dcbf5e6a48"; 22 + hash = "sha256-U5lxAKTaQvvlqbqRezPIcBGg+DpF1hZ204Y1+8dt14U="; 23 + }; 24 + 25 + # don't use vendored opencv 26 + postPatch = '' 27 + substituteInPlace src/CMakeLists.txt \ 28 + --replace "opencv_mobile" "opencv4" 29 + substituteInPlace src/paddleocr-ncnn/paddleocr.cpp \ 30 + --replace "/usr" "$out" 31 + ''; 32 + 33 + nativeBuildInputs = [ 34 + cmake 35 + qttools 36 + pkg-config 37 + wrapQtAppsHook 38 + ]; 39 + 40 + buildInputs = [ 41 + ncnn 42 + opencv 43 + vulkan-headers 44 + ]; 45 + 46 + strictDeps = true; 47 + 48 + cmakeFlags = [ 49 + "-DCMAKE_INSTALL_LIBDIR=lib" 50 + "-DCMAKE_INSTALL_INCLUDEDIR=include" 51 + ]; 52 + 53 + meta = with lib; { 54 + description = "Plugin manager of optical character recognition for DDE"; 55 + homepage = "https://github.com/linuxdeepin/deepin-ocr-plugin-manager"; 56 + license = licenses.gpl3Plus; 57 + platforms = platforms.linux; 58 + maintainers = teams.deepin.members; 59 + }; 60 + }