lol

deepin-image-viewer: init at 5.9.4

authored by

rewine and committed by
rewine
ac500cdd 3adf8bdf

+102
+25
pkgs/desktops/deepin/apps/deepin-image-viewer/0001-fix-install-path-for-nix.patch
··· 1 + From c2fa29800c64f5bda04203bb2eb1845b29c1de3c Mon Sep 17 00:00:00 2001 2 + From: rewine <luhongxu@deepin.org> 3 + Date: Fri, 25 Mar 2022 18:20:17 +0800 4 + Subject: [PATCH] fix install path for nix 5 + 6 + --- 7 + qimage-plugins/libraw/CMakeLists.txt | 3 +-- 8 + 1 file changed, 1 insertion(+), 2 deletions(-) 9 + 10 + diff --git a/qimage-plugins/libraw/CMakeLists.txt b/qimage-plugins/libraw/CMakeLists.txt 11 + index 4bfd85ad..00d11bd3 100644 12 + --- a/qimage-plugins/libraw/CMakeLists.txt 13 + +++ b/qimage-plugins/libraw/CMakeLists.txt 14 + @@ -44,7 +44,6 @@ target_include_directories(xraw PUBLIC ${RAW_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIR 15 + 16 + target_link_libraries(${CMD_NAME} Qt5::Core Qt5::Gui raw) 17 + 18 + -install(TARGETS ${CMD_NAME} DESTINATION ${Qt5Core_DIR}/../../qt5/plugins/imageformats) 19 + - 20 + +install(TARGETS ${CMD_NAME} DESTINATION qt5/plugins/imageformats) 21 + 22 + QT5_USE_MODULES(${PROJECT_NAME} Core Gui) 23 + -- 24 + 2.35.1 25 +
+76
pkgs/desktops/deepin/apps/deepin-image-viewer/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , dtkwidget 6 + , qt5integration 7 + , qt5platform-plugins 8 + , gio-qt 9 + , udisks2-qt5 10 + , image-editor 11 + , cmake 12 + , pkg-config 13 + , qttools 14 + , wrapQtAppsHook 15 + , libraw 16 + , libexif 17 + , qtbase 18 + }: 19 + 20 + stdenv.mkDerivation rec { 21 + pname = "deepin-image-viewer"; 22 + version = "5.9.4"; 23 + 24 + src = fetchFromGitHub { 25 + owner = "linuxdeepin"; 26 + repo = pname; 27 + rev = version; 28 + sha256 = "sha256-5A6K47NcMkvncZIF5CXeHYYZWEHQ4YDnPDQr2axCmaI="; 29 + }; 30 + 31 + patches = [ 32 + ./0001-fix-install-path-for-nix.patch 33 + (fetchpatch { 34 + name = "chore: use GNUInstallDirs in CmakeLists"; 35 + url = "https://github.com/linuxdeepin/deepin-image-viewer/commit/4a046e6207fea306e592fddc33c1285cf719a63d.patch"; 36 + sha256 = "sha256-aIgYmq6WDfCE+ZcD0GshxM+QmBWZGjh9MzZcTMrhBJ0="; 37 + }) 38 + ]; 39 + 40 + postPatch = '' 41 + substituteInPlace src/com.deepin.ImageViewer.service \ 42 + --replace "/usr/bin/deepin-image-viewer" "$out/bin/deepin-image-viewer" 43 + ''; 44 + 45 + nativeBuildInputs = [ 46 + cmake 47 + pkg-config 48 + qttools 49 + wrapQtAppsHook 50 + ]; 51 + 52 + buildInputs = [ 53 + dtkwidget 54 + qt5platform-plugins 55 + gio-qt 56 + udisks2-qt5 57 + image-editor 58 + libraw 59 + libexif 60 + ]; 61 + 62 + cmakeFlags = [ "-DVERSION=${version}" ]; 63 + 64 + # qt5integration must be placed before qtsvg in QT_PLUGIN_PATH 65 + qtWrapperArgs = [ 66 + "--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}" 67 + ]; 68 + 69 + meta = with lib; { 70 + description = "An image viewing tool with fashion interface and smooth performance"; 71 + homepage = "https://github.com/linuxdeepin/deepin-image-viewer"; 72 + license = licenses.gpl3Plus; 73 + platforms = platforms.linux; 74 + maintainers = teams.deepin.members; 75 + }; 76 + }
+1
pkgs/desktops/deepin/default.nix
··· 25 25 deepin-compressor = callPackage ./apps/deepin-compressor { }; 26 26 deepin-draw = callPackage ./apps/deepin-draw { }; 27 27 deepin-editor = callPackage ./apps/deepin-editor { }; 28 + deepin-image-viewer = callPackage ./apps/deepin-image-viewer { }; 28 29 deepin-terminal = callPackage ./apps/deepin-terminal { }; 29 30 30 31 #### ARTWORK