lol

deepin.dde-session-shell: init at 5.6.4

authored by

rewine and committed by
rewine
6ee20da0 b48842d5

+113
+112
pkgs/desktops/deepin/core/dde-session-shell/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , linkFarm 5 + , dtkwidget 6 + , qt5integration 7 + , qt5platform-plugins 8 + , dde-qt-dbus-factory 9 + , cmake 10 + , pkg-config 11 + , qttools 12 + , qtx11extras 13 + , wrapQtAppsHook 14 + , wrapGAppsHook 15 + , gsettings-qt 16 + , lightdm_qt 17 + , linux-pam 18 + , xorg 19 + , kwayland 20 + , gtest 21 + , xkeyboard_config 22 + , dbus 23 + , qtbase 24 + , dde-session-shell 25 + }: 26 + stdenv.mkDerivation rec { 27 + pname = "dde-session-shell"; 28 + version = "5.6.4"; 29 + 30 + src = fetchFromGitHub { 31 + owner = "linuxdeepin"; 32 + repo = pname; 33 + rev = version; 34 + sha256 = "sha256-mrdGu4t86d3No23IrnjypVLx1jxaySatr0xPMY9l5S4"; 35 + }; 36 + 37 + postPatch = '' 38 + substituteInPlace src/lightdm-deepin-greeter/greeterworker.cpp \ 39 + --replace "/usr/include/shadow.h" "shadow.h" 40 + 41 + substituteInPlace scripts/lightdm-deepin-greeter files/wayland/lightdm-deepin-greeter-wayland \ 42 + --replace "/usr/lib/deepin-daemon" "/run/current-system/sw/lib/deepin-daemon" 43 + 44 + substituteInPlace src/session-widgets/auth_module.h \ 45 + --replace "/usr/lib/dde-control-center" "/run/current-system/sw/lib/dde-control-center" 46 + 47 + substituteInPlace src/global_util/plugin_manager/modules_loader.cpp \ 48 + --replace "/usr/lib/dde-session-shell/modules" "/run/current-system/sw/lib/dde-session-shell/modules" 49 + 50 + substituteInPlace src/{session-widgets/{lockcontent.cpp,userinfo.cpp},widgets/fullscreenbackground.cpp} \ 51 + --replace "/usr/share/backgrounds" "/run/current-system/sw/share/backgrounds" 52 + 53 + substituteInPlace src/global_util/xkbparser.h \ 54 + --replace "/usr/share/X11/xkb/rules/base.xml" "${xkeyboard_config}/share/X11/xkb/rules/base.xml" 55 + 56 + substituteInPlace files/{com.deepin.dde.shutdownFront.service,com.deepin.dde.lockFront.service} \ 57 + --replace "/usr/bin/dbus-send" "${dbus}/bin/dbus-send" \ 58 + --replace "/usr/share" "$out/share" 59 + 60 + substituteInPlace src/global_util/{public_func.cpp,constants.h} scripts/lightdm-deepin-greeter files/{dde-lock.desktop,lightdm-deepin-greeter.desktop,wayland/lightdm-deepin-greeter-wayland.desktop} \ 61 + --replace "/usr" "$out" 62 + 63 + patchShebangs files/deepin-greeter 64 + ''; 65 + 66 + nativeBuildInputs = [ 67 + cmake 68 + pkg-config 69 + qttools 70 + wrapQtAppsHook 71 + wrapGAppsHook 72 + ]; 73 + dontWrapGApps = true; 74 + 75 + buildInputs = [ 76 + dtkwidget 77 + qt5platform-plugins 78 + dde-qt-dbus-factory 79 + gsettings-qt 80 + lightdm_qt 81 + qtx11extras 82 + linux-pam 83 + kwayland 84 + xorg.libXcursor 85 + xorg.libXtst 86 + xorg.libXrandr 87 + xorg.libXdmcp 88 + gtest 89 + ]; 90 + 91 + # qt5integration must be placed before qtsvg in QT_PLUGIN_PATH 92 + qtWrapperArgs = [ 93 + "--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}" 94 + ]; 95 + 96 + preFixup = '' 97 + qtWrapperArgs+=("''${gappsWrapperArgs[@]}") 98 + ''; 99 + 100 + passthru.xgreeters = linkFarm "deepin-greeter-xgreeters" [{ 101 + path = "${dde-session-shell}/share/xgreeters/lightdm-deepin-greeter.desktop"; 102 + name = "lightdm-deepin-greeter.desktop"; 103 + }]; 104 + 105 + meta = with lib; { 106 + description = "Deepin desktop-environment - session-shell module"; 107 + homepage = "https://github.com/linuxdeepin/dde-session-shell"; 108 + license = licenses.gpl3Plus; 109 + platforms = platforms.linux; 110 + maintainers = teams.deepin.members; 111 + }; 112 + }
+1
pkgs/desktops/deepin/default.nix
··· 36 36 dde-clipboard = callPackage ./core/dde-clipboard { }; 37 37 dde-dock = callPackage ./core/dde-dock { }; 38 38 dde-launcher = callPackage ./core/dde-launcher { }; 39 + dde-session-shell = callPackage ./core/dde-session-shell { }; 39 40 dde-polkit-agent = callPackage ./core/dde-polkit-agent { }; 40 41 dpa-ext-gnomekeyring = callPackage ./core/dpa-ext-gnomekeyring { }; 41 42