2018-10-21 22:00:55 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtsvg, qttools,
|
|
|
|
qtx11extras, xkeyboard_config, xorg, lightdm_qt, gsettings-qt,
|
|
|
|
dde-qt-dbus-factory, deepin-gettext-tools, dtkcore, dtkwidget,
|
2018-11-14 12:27:51 +00:00
|
|
|
deepin-desktop-schemas, deepin, hicolor-icon-theme, wrapGAppsHook }:
|
2018-10-21 22:00:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "dde-session-ui";
|
2019-05-04 12:41:59 +01:00
|
|
|
version = "4.9.6";
|
2018-10-21 22:00:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-04 12:41:59 +01:00
|
|
|
sha256 = "1wk5mjv1g9my80cxpcycqkm2gjc5r5rrcpxmsl06w4g2c19k50x1";
|
2018-10-21 22:00:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
deepin-gettext-tools
|
2018-11-14 12:27:51 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
deepin.setupHook
|
2018-10-21 22:00:55 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dde-qt-dbus-factory
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
gsettings-qt
|
|
|
|
lightdm_qt
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXtst
|
|
|
|
xkeyboard_config
|
|
|
|
hicolor-icon-theme
|
2018-11-14 12:27:51 +00:00
|
|
|
deepin-desktop-schemas
|
2018-10-21 22:00:55 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2018-11-14 12:27:51 +00:00
|
|
|
searchHardCodedPaths
|
|
|
|
patchShebangs translate_generation.sh
|
|
|
|
patchShebangs translate_desktop.sh
|
2018-10-21 22:00:55 +01:00
|
|
|
sed -i translate_desktop.sh -e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
|
|
|
|
find -type f -exec sed -i -e "s,path = /etc,path = $out/etc," {} +
|
|
|
|
find -type f -exec sed -i -e "s,path = /usr,path = $out," {} +
|
|
|
|
find -type f -exec sed -i -e "s,Exec=/usr,Exec=$out," {} +
|
|
|
|
find -type f -exec sed -i -e "s,/usr/share/dde-session-ui,$out/share/dde-session-ui," {} +
|
|
|
|
sed -i global_util/xkbparser.h -e "s,/usr/share/X11/xkb/rules/base.xml,${xkeyboard_config}/share/X11/xkb/rules/base.xml,"
|
2018-10-31 00:16:19 +00:00
|
|
|
sed -i lightdm-deepin-greeter/scripts/lightdm-deepin-greeter -e "s,/usr/bin/lightdm-deepin-greeter,$out/bin/lightdm-deepin-greeter,"
|
2018-10-21 22:00:55 +01:00
|
|
|
# fix default background url
|
|
|
|
sed -i widgets/*.cpp boxframe/*.cpp -e 's,/usr/share/backgrounds/default_background.jpg,/usr/share/backgrounds/deepin/desktop.jpg,'
|
|
|
|
'';
|
|
|
|
|
2018-10-30 22:17:45 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-10-21 22:00:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Deepin desktop-environment - Session UI module";
|
|
|
|
homepage = https://github.com/linuxdeepin/dde-session-ui;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|