2020-05-03 20:52:19 +01:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, cmake
|
|
|
|
, deepin
|
|
|
|
, qttools
|
|
|
|
, qtdeclarative
|
|
|
|
, networkmanager
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, dtkcore
|
|
|
|
, dtkwidget
|
|
|
|
, geoip
|
|
|
|
, gsettings-qt
|
|
|
|
, dde-network-utils
|
|
|
|
, networkmanager-qt
|
|
|
|
, xorg
|
|
|
|
, mtdev
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, dde-api
|
|
|
|
, dde-daemon
|
|
|
|
, qt5integration
|
|
|
|
, deepin-desktop-base
|
|
|
|
, deepin-desktop-schemas
|
|
|
|
, dbus
|
|
|
|
, systemd
|
|
|
|
, dde-qt-dbus-factory
|
|
|
|
, qtmultimedia
|
|
|
|
, qtbase
|
|
|
|
, glib
|
|
|
|
, gnome3
|
|
|
|
, which
|
|
|
|
, substituteAll
|
|
|
|
, tzdata
|
|
|
|
, wrapGAppsHook
|
2019-06-26 19:19:43 +01:00
|
|
|
}:
|
|
|
|
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2019-06-26 19:19:43 +01:00
|
|
|
pname = "dde-control-center";
|
2019-11-12 01:08:37 +00:00
|
|
|
version = "5.0.0";
|
2019-06-26 19:19:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:37 +00:00
|
|
|
sha256 = "10bx8bpvi3ib32a3l4nyb1j0iq3bch8jm9wfm6d5v0ym1zb92x3b";
|
2019-06-26 19:19:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
deepin.setupHook
|
|
|
|
pkgconfig
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dde-api
|
|
|
|
dde-daemon
|
|
|
|
dde-network-utils
|
|
|
|
dde-qt-dbus-factory
|
|
|
|
deepin-desktop-base
|
|
|
|
deepin-desktop-schemas
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
geoip
|
|
|
|
glib
|
|
|
|
gnome3.networkmanager-l2tp
|
|
|
|
gnome3.networkmanager-openconnect
|
|
|
|
gnome3.networkmanager-openvpn
|
|
|
|
gnome3.networkmanager-vpnc
|
|
|
|
gsettings-qt
|
|
|
|
mtdev
|
|
|
|
networkmanager-qt
|
|
|
|
qt5integration
|
|
|
|
qtbase
|
|
|
|
qtdeclarative
|
|
|
|
qtmultimedia
|
|
|
|
qtsvg
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libxcb
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDISABLE_SYS_UPDATE=YES"
|
|
|
|
"-DDCC_DISABLE_GRUB=YES"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
nmcli = "${networkmanager}/bin/nmcli";
|
|
|
|
which = "${which}/bin/which";
|
|
|
|
# not packaged
|
|
|
|
# dman = "${deepin-manual}/bin/dman";
|
|
|
|
inherit tzdata;
|
|
|
|
# exclusive to deepin linux?
|
|
|
|
# allows to synchronize configuration files to cloud networks
|
|
|
|
# deepin_sync = "${deepin-sync}";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
searchHardCodedPaths
|
|
|
|
|
|
|
|
patchShebangs translate_ts2desktop.sh
|
|
|
|
patchShebangs translate_generation.sh
|
|
|
|
patchShebangs translate_desktop2ts.sh
|
|
|
|
|
|
|
|
fixPath $out /usr dde-control-center-autostart.desktop \
|
|
|
|
com.deepin.dde.ControlCenter.service \
|
|
|
|
src/frame/widgets/utils.h
|
|
|
|
|
|
|
|
substituteInPlace dde-control-center.desktop \
|
|
|
|
--replace "dbus-send" "${dbus}/bin/dbus-send"
|
|
|
|
substituteInPlace com.deepin.controlcenter.addomain.policy \
|
|
|
|
--replace "/bin/systemctl" "${systemd}/bin/systemctl"
|
|
|
|
'';
|
|
|
|
|
2019-08-08 15:59:58 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2019-06-26 19:19:43 +01:00
|
|
|
postFixup = ''
|
|
|
|
# debuging
|
|
|
|
searchForUnresolvedDLL $out
|
|
|
|
searchHardCodedPaths $out
|
|
|
|
'';
|
|
|
|
|
2020-05-03 21:03:55 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2019-06-26 19:19:43 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Control panel of Deepin Desktop Environment";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxdeepin/dde-control-center";
|
2019-06-26 19:19:43 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo worldofpeace ];
|
|
|
|
};
|
|
|
|
}
|