dde-session: init at 1.1.9

This commit is contained in:
rewine 2023-09-26 17:09:25 +08:00
parent f80750ffc3
commit c5b4480435
No known key found for this signature in database
GPG key ID: 2964FF5514455F51
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,69 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, qtbase
, dtkcore
, gsettings-qt
, libsecret
, xorg
, systemd
, dde-polkit-agent
}:
stdenv.mkDerivation rec {
pname = "dde-session";
version = "1.1.9";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-CyHvvNALXe4fOMjD48By/iaU6/xNUhH9yG19Ob3bHy0=";
};
postPatch = ''
# Avoid using absolute path to distinguish applications
substituteInPlace src/dde-session/impl/sessionmanager.cpp \
--replace 'file.readAll().startsWith("/usr/bin/dde-lock")' 'file.readAll().contains("dde-lock")' \
substituteInPlace systemd/dde-session-initialized.target.wants/dde-polkit-agent.service \
--replace "/usr/lib/polkit-1-dde" "${dde-polkit-agent}/lib/polkit-1-dde"
for file in $(grep -rl "/usr/lib/deepin-daemon"); do
substituteInPlace $file --replace "/usr/lib/deepin-daemon" "/run/current-system/sw/lib/deepin-daemon"
done
for file in $(grep -rl "/usr/bin"); do
substituteInPlace $file --replace "/usr/bin/" "/run/current-system/sw/bin/"
done
'';
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
buildInputs = [
qtbase
dtkcore
gsettings-qt
libsecret
xorg.libXcursor
systemd
];
# FIXME: dde-wayland always exits abnormally
passthru.providedSessions = [ "dde-x11" ];
meta = with lib; {
description = "New deepin session based on systemd and existing projects";
homepage = "https://github.com/linuxdeepin/dde-session";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}

View file

@ -34,6 +34,7 @@ let
dde-launcher = callPackage ./core/dde-launcher { };
dde-launchpad = callPackage ./core/dde-launchpad { };
dde-network-core = callPackage ./core/dde-network-core { };
dde-session = callPackage ./core/dde-session { };
dde-session-shell = callPackage ./core/dde-session-shell { };
dde-session-ui = callPackage ./core/dde-session-ui { };
deepin-service-manager = callPackage ./core/deepin-service-manager { };