2020-05-03 20:52:19 +01:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, cmake
|
|
|
|
, dde-qt-dbus-factory
|
|
|
|
, dde-session-ui
|
|
|
|
, deepin
|
|
|
|
, deepin-desktop-schemas
|
|
|
|
, deepin-wallpapers
|
|
|
|
, dtkcore
|
|
|
|
, dtkwidget
|
|
|
|
, gsettings-qt
|
|
|
|
, qtsvg
|
|
|
|
, qttools
|
|
|
|
, qtx11extras
|
|
|
|
, which
|
|
|
|
, xdg_utils
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
}:
|
2019-06-22 21:28:29 +01:00
|
|
|
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2019-06-22 21:28:29 +01:00
|
|
|
pname = "dde-launcher";
|
2019-11-12 01:08:37 +00:00
|
|
|
version = "5.0.0";
|
2019-06-22 21:28:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:37 +00:00
|
|
|
sha256 = "0zh6bb0r3pgjrnw9rba46ghdzza1ka1mv7r1znf8gw24wsjgjcpn";
|
2019-06-22 21:28:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
qttools
|
|
|
|
wrapGAppsHook
|
|
|
|
deepin.setupHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dde-qt-dbus-factory
|
|
|
|
dde-session-ui
|
|
|
|
deepin-desktop-schemas
|
|
|
|
deepin-wallpapers
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
2019-08-08 16:00:30 +01:00
|
|
|
glib
|
2019-06-22 21:28:29 +01:00
|
|
|
gsettings-qt
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
which
|
|
|
|
xdg_utils
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# debugging
|
|
|
|
searchHardCodedPaths
|
|
|
|
|
|
|
|
substituteInPlace CMakeLists.txt --replace "/usr/share" "$out/share"
|
|
|
|
|
|
|
|
substituteInPlace src/dbusservices/com.deepin.dde.Launcher.service --replace "/usr" "$out"
|
|
|
|
|
|
|
|
substituteInPlace src/historywidget.cpp --replace "xdg-open" "${xdg_utils}/bin/xdg-open"
|
|
|
|
substituteInPlace src/widgets/miniframebottombar.cpp --replace "dde-shutdown" "${dde-session-ui}/bin/dde-shutdown"
|
|
|
|
substituteInPlace src/widgets/miniframerightbar.cpp --replace "which" "${which}/bin/which"
|
|
|
|
|
|
|
|
# Uncomment (and remove space after $) after packaging deepin-manual
|
|
|
|
#substituteInPlace src/sharedeventfilter.cpp --replace "dman" "$ {deepin-manual}/bin/dman"
|
|
|
|
|
|
|
|
for f in src/boxframe/*.cpp; do
|
|
|
|
substituteInPlace $f --replace "/usr/share/backgrounds/default_background.jpg" "${deepin-wallpapers}/share/backgrounds/deepin/desktop.jpg"
|
|
|
|
done
|
|
|
|
|
|
|
|
# note: `dbus-send` path does not need to be hard coded because it is not used for dtkcore >= 2.0.8.0
|
|
|
|
'';
|
|
|
|
|
2019-08-08 16:00:30 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2019-06-22 21:28:29 +01:00
|
|
|
postFixup = ''
|
|
|
|
# debugging
|
|
|
|
searchHardCodedPaths $out
|
|
|
|
'';
|
|
|
|
|
2020-05-03 21:03:55 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2019-06-22 21:28:29 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Deepin Desktop Environment launcher module";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxdeepin/dde-launcher";
|
2019-06-22 21:28:29 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|