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
cinnamon.xapps: init at 1.6.8 #75138
Conversation
b243d71
to
893a722
Compare
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.
Could you style your expressions like in?
Most notably,
{ fetchFromGitHub
, something
, etc
}:
and arrays with one item per line.
For the python library, you have hardcoded binaries you have to patch
- https://github.com/linuxmint/python-xapp/blob/master/xapp/os.py#L75
See examples ingnome-3
packaging usingfix-paths.patch
andsubstituteAll
.
In this particular case it's trying to access some optional binaries.
I recommend only patching the code for polkit, as you could easily control that configuration within the cinnamon module. (and it would be preferred).
It also seems to not be patched properly by python setup hooks, and even has an FHS shebang in one file. Will look into that later.
1bd50a1
to
033a87b
Compare
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.
please squash the commits, I would squash your cinnamon namespace commit with xapps, then have python as a separate commit
cinammon.xapps: init at 1.6.4
pythonPackages.xapps: init at 1.6.3
f216528
to
aa3c493
Compare
IMO this is done so far. Only thing left is some unanswered questions in the review-comments & the upstream patch for glib not being found. |
4945aa1
to
428e988
Compare
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.
LGTM
[9 built, 12 copied (3.8 MiB), 0.8 MiB DL]
https://github.com/NixOS/nixpkgs/pull/75138
4 package were built:
cinnamon.xapps python27Packages.xapp python37Packages.xapp python38Packages.xapp
@GrahamcOfBorg build cinnamon.xapps python27Packages.xapp python37Packages.xapp python38Packages.xapp |
@worldofpeace you still have a "change request", are you good with this? |
I believe #75138 (comment) broke things. |
oh, well, it's currently in buildinputs, which wouldn't get propagated anyway. If it's just needed for meson, then shouldn't that go in nativeBuildInputs? |
|
Which python should be in native build inputs? The one with withPackages or the python3Packages.pygoobject3 @worldofpeace |
428e988
to
4cd174a
Compare
I've noticed that upload-system-info was referencing pastebin via a non-nix fixed path, fixed that It also uses inxi from $PATH. How should that be handled? Include it as a buildInput? Or just add it to the system via the cinnamon nixos module? |
if you want it to remain in python-modules, so that it can be used by other packages, you need to patch the call. Something like Patching is required because you can't count on any type of wrapping :( If it's an application (and not meant to be imported by other packages), then you can do as much wrapping as you would like |
upload-system-info is part of xapps, not python-xapp |
oh, for xapps? then you can use makeWrapper, here's an example for minecraft: nixpkgs/pkgs/games/minecraft/default.nix Line 113 in 9ace40c
|
4cd174a
to
459a7b7
Compare
@jonringer I've ended up directly patching the location, since the executables are already wrapped and double-wrapping seems a tad too much @worldofpeace Is pygobject3 just a build dependency? The scripts seem to require python, so unsure what to do here. |
There were things in Requires that weren't propagated.
459a7b7
to
47dcb04
Compare
@mkg20001 Our reviews become divisive here. Anything that was an issue I fixed in the force push. |
Motivation for this change
This adds the xapps package and it's python module to nixpkgs, to allow for the cinnamon desktop to be ported
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @