New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] deepin: updates, new packages and fixes #52403
Conversation
@GrahamcOfBorg build deepin.dbus-factory deepin.dde-api deepin.dde-calendar deepin.dde-daemon deepin.dde-dock deepin.dde-file-manager deepin.dde-network-utils deepin.dde-polkit-agent deepin.dde-qt-dbus-factory deepin.dde-session-ui deepin.deepin-anything deepin.deepin-desktop-base deepin.deepin-desktop-schemas deepin.deepin-gettext-tools deepin.deepin-gtk-theme deepin.deepin-icon-theme deepin.deepin-image-viewer deepin.deepin-menu deepin.deepin-metacity deepin.deepin-movie-reborn deepin.deepin-mutter deepin.deepin-shortcut-viewer deepin.deepin-sound-theme deepin.deepin-terminal deepin.deepin-turbo deepin.deepin-wallpapers deepin.deepin-wm deepin.dpa-ext-gnomekeyring deepin.dtkcore deepin.dtkwm deepin.dtkwidget deepin.go-dbus-factory deepin.go-dbus-generator deepin.go-gir-generator deepin.go-lib deepin.qt5dxcb-plugin deepin.qt5integration deepin.startdde |
@GrahamcOfBorg build deepin.dbus-factory deepin.dde-api deepin.dde-calendar deepin.dde-daemon deepin.dde-dock deepin.dde-file-manager deepin.dde-network-utils deepin.dde-polkit-agent deepin.dde-qt-dbus-factory deepin.dde-session-ui deepin.deepin-anything deepin.deepin-desktop-base deepin.deepin-desktop-schemas deepin.deepin-gettext-tools deepin.deepin-gtk-theme deepin.deepin-icon-theme deepin.deepin-image-viewer deepin.deepin-menu deepin.deepin-metacity deepin.deepin-movie-reborn deepin.deepin-mutter deepin.deepin-shortcut-viewer deepin.deepin-sound-theme deepin.deepin-terminal deepin.deepin-turbo deepin.deepin-wallpapers deepin.deepin-wm deepin.dpa-ext-gnomekeyring deepin.dtkcore deepin.dtkwm deepin.dtkwidget deepin.go-dbus-factory deepin.go-dbus-generator deepin.go-gir-generator deepin.go-lib deepin.qt5dxcb-plugin deepin.qt5integration deepin.startdde |
@@ -0,0 +1,33 @@ | |||
# Helper functions for deepin packaging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should tell Deepin about a thing called PATH
? 🤣
Stuff like hardcoding /bin/ls
shouldn't be needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are plenty of binaries (and other files) that are hardcoded like that on DDE. It is going to give some work to have all of them fixed for NixOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are at least two ways of fixing some of the hard coded paths for binaries:
- fix its path (
/usr/bin/dde-file-manager
becomes${dde-file-manager}/bin/dde-file-manager
indeepin-screenshot
, for instance); it may result in an additional run time dependency - remove the directory, leaving only the file name (
/usr/bin/dde-file-manager
becomesdde-file-manager
); it will work only if the directory is in$PATH
, and the dependency may have to be explicitly installed
Some days ago someone told me on IRC that the first approach is better. But I am not sure of that, because sometimes the dependency may be optional and costly. Nonetheless I have adopted it.
Any opinions?
@romildo can you cherry-pick flokli@813cb24 (add Fixes #52358. |
@romildo Btw, Might be something you want to drop later. |
@worldofpeace Should just removing (or commenting) the
|
Added, with some additional dependencies and hard coded paths fixed. |
It seems that you're expecting the passthru.updateScript = deepin.updateScript { inherit name; }; In that case I don't think it would be much added benefit to add that change, aside from conforming. |
I am trying to add new packages, updates and fixes for DDE in small portions, to make the PRs more manageable. Otherwise a lot of changes would pile up making them difficult to review. At one point (I hope soon) a NixOS service to start the DDE from the login manager will also be added. |
@GrahamcOfBorg build deepin.deepin-screenshot |
I agree that can be a better approach that what I have done recently 😉
Should be easier to implement now that we have 'upstream' session support. And they seem to be compliant with that https://github.com/linuxdeepin/startdde/blob/master/misc/xsessions/deepin.desktop.in |
Is there any documentation on how to make use of 'upstream' session on NixOS? |
You should set this option to Though I would start with getting a greeter module which should be simple because they're using lightdm. |
Once merged, will Deepin be available for NixOS as |
No yet. I am still working on making it work. |
Closing in favor of #58634. |
Motivation for this change
Updates, new packages and fixes for the Deepin Desktop Environment.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)