Skip to content

Commit

Permalink
deepin.dde-control-center: 6.0.59 -> 6.0.65
Browse files Browse the repository at this point in the history
  • Loading branch information
wineee committed Sep 23, 2024
1 parent 3fb1abd commit 01a5ae8
Showing 1 changed file with 16 additions and 35 deletions.
51 changes: 16 additions & 35 deletions pkgs/desktops/deepin/core/dde-control-center/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,28 @@
fetchFromGitHub,
cmake,
pkg-config,
qttools,
doxygen,
wrapQtAppsHook,
wrapGAppsHook3,
wayland-scanner,
wayland,
dtkwidget,
qt5integration,
qt5platform-plugins,
libsForQt5,
deepin-pw-check,
qtbase,
qtx11extras,
qtmultimedia,
polkit-qt,
libxcrypt,
librsvg,
gtest,
runtimeShell,
dbus,
}:

stdenv.mkDerivation rec {
pname = "dde-control-center";
version = "6.0.59";
version = "6.0.65";

src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-OniY/B/9319AYYFFPnsUMNrnc0yVGG3rfCLPjgNFyag=";
hash = "sha256-9v2UtLjQQ3OX69UxMknLlrQhorahDI4Z4EEHItBs7G0=";
};

postPatch = ''
Expand All @@ -43,24 +36,22 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cmake
pkg-config
qttools
libsForQt5.qttools
doxygen
wrapQtAppsHook
wrapGAppsHook3
libsForQt5.wrapQtAppsHook
wayland-scanner
];
dontWrapGApps = true;

buildInputs = [
wayland
dtkwidget
qt5platform-plugins
qt5integration
deepin-pw-check
qtbase
qtx11extras
qtmultimedia
polkit-qt
libsForQt5.qtbase
libsForQt5.qtmultimedia
libsForQt5.polkit-qt
libxcrypt
librsvg
gtest
];

Expand All @@ -79,30 +70,20 @@ stdenv.mkDerivation rec {
preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
'';

# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ librsvg ]}"
];

preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
export QT_PLUGIN_PATH=${libsForQt5.qtbase.bin}/${libsForQt5.qtbase.qtPluginPrefix}
'';

outputs = [
"out"
"dev"
];

meta = with lib; {
meta = {
description = "Control panel of Deepin Desktop Environment";
mainProgram = "dde-control-center";
homepage = "https://github.com/linuxdeepin/dde-control-center";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
}

0 comments on commit 01a5ae8

Please sign in to comment.