mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 22:14:34 +00:00
d93fee8b20
The deepin desktop environment requires both qt5 and qt6, deepin scope should not inherit from qt5
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
dtkwidget,
|
|
qt5integration,
|
|
qt5platform-plugins,
|
|
udisks2-qt5,
|
|
cmake,
|
|
pkg-config,
|
|
libsForQt5,
|
|
minizip,
|
|
libzip,
|
|
libuuid,
|
|
libarchive,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "deepin-compressor";
|
|
version = "6.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-DUpYb1xNmWpBcKo9kajeVm/+z4yj2OBE+qOyEkCHbUI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/source/common/pluginmanager.cpp \
|
|
--replace-fail "/usr/lib" "$out/lib"
|
|
substituteInPlace src/desktop/deepin-compressor.desktop \
|
|
--replace-fail "/usr" "$out"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
libsForQt5.qttools
|
|
pkg-config
|
|
libsForQt5.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dtkwidget
|
|
qt5integration
|
|
qt5platform-plugins
|
|
udisks2-qt5
|
|
libsForQt5.kcodecs
|
|
libsForQt5.karchive
|
|
minizip
|
|
libzip
|
|
libuuid
|
|
libarchive
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DVERSION=${version}"
|
|
"-DUSE_TEST=OFF"
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
meta = with lib; {
|
|
description = "Fast and lightweight application for creating and extracting archives";
|
|
mainProgram = "deepin-compressor";
|
|
homepage = "https://github.com/linuxdeepin/deepin-compressor";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.deepin.members;
|
|
};
|
|
}
|