deepin-compressor: init at 5.12.9

This commit is contained in:
rewine 2023-01-12 17:22:51 +08:00 committed by rewine
parent 5c2421ad55
commit bad653dbc2
No known key found for this signature in database
GPG key ID: AABB329787290824
2 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,73 @@
{ stdenv
, lib
, fetchFromGitHub
, dtkwidget
, qt5integration
, qt5platform-plugins
, udisks2-qt5
, cmake
, qtbase
, qttools
, pkg-config
, kcodecs
, karchive
, wrapQtAppsHook
, minizip
, libzip
, libarchive
}:
stdenv.mkDerivation rec {
pname = "deepin-compressor";
version = "5.12.9";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-HJDtUvXUT94G4WqrK92UMmijnuC4ApkKHU3yE3rOKHQ=";
};
postPatch = ''
substituteInPlace src/source/common/pluginmanager.cpp \
--replace "/usr/lib/" "$out/lib/"
substituteInPlace src/desktop/deepin-compressor.desktop \
--replace "/usr" "$out"
'';
nativeBuildInputs = [
cmake
qttools
pkg-config
wrapQtAppsHook
];
buildInputs = [
dtkwidget
qt5platform-plugins
udisks2-qt5
kcodecs
karchive
minizip
libzip
libarchive
];
cmakeFlags = [
"-DVERSION=${version}"
"-DUSE_TEST=OFF"
];
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];
meta = with lib; {
description = "A fast and lightweight application for creating and extracting archives";
homepage = "https://github.com/linuxdeepin/deepin-compressor";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}

View file

@ -22,6 +22,7 @@ let
#### Dtk Application
deepin-calculator = callPackage ./apps/deepin-calculator { };
deepin-compressor = callPackage ./apps/deepin-compressor { };
deepin-editor = callPackage ./apps/deepin-editor { };
deepin-terminal = callPackage ./apps/deepin-terminal { };