-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
cosmic-{comp,panel,applets}: init #251365
Conversation
Out of curiosity: What's your use case then? |
|
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.
Built successfully via nixpkgs-review pr
:
4 packages built:
cosmic-applets cosmic-comp cosmic-comp.debug cosmic-panel
Code looks excellent to me.
Tested multiple binaries without success because I am running X11/i3, so it obviously fails, but binaries do not crash for wrong reasons.
It has an X11 backend — I think you should be able to run cosmic-comp. What errors? EDIT: alternatively, you can of course try running cosmic-comp in its own VT. |
I do not have DRM on my X11 server I believe.
|
I've added the missing libraries to fix the X11 backend. If it still doesn't work for you, it's likely Nvidia nonsense. |
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.
I was able to get cosmic-comp
running with wayland.
I couldn't figure out how to run anything from cosmic
so I tested the cosmic-applets
with Hyprland
and everything that didn't depend on anything cosmic
specific works like expected.
I too run a nixpkgs-based, non-NixOS system and am very interested in this package. |
@ofborg build pkgsCross.aarch64-multiplatform.cosmic-panel |
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 but the changes below are needed in order for cross compilation to work. Up to you whether to apply them here, or else leave them to a follow-up PR:
Only major question/concern: I think using patchelf
instead of RUSTFLAGS
will be less of a headache in the long run -- unless there's some reason why we can't use patchelf --add-needed
?
With the changes below:
Built successfully on:
-
x86_64-linux
-
aarch64-linux
(cross fromx86_64-linux
)
These require setting the use_bindgen
feature flag on drm-sys
, which cargo
can't do (but crate2nix
can!) because it is an indirect dependency:
-
powerpc64le-linux
-
mips64el-linux
mixedn32
/64
(cross fromx86_64-linux
)
Modifying the binary after the fact, rather than just having the linker generate what we want in the first place, feels like way more of a hack/headache to me. |
Well yes, if Anyways, going the environment variable route, we really should use one that applies only to linking, and only on the
It does seem weird that, for native builds, any tools built by |
Note: If you want to use You need the very latest
Keep those two files, discard the rest of the upstream source. These two files are what would go into a PR if we allowed it. Then
This just gets it built (without using The big wins with
|
Hey I'm about to leave town for a while, so let's just postpone fixing cross to a later PR. I've marked all but one of my suggested changes as "resolved", and that last one might not matter. Thanks for writing this! |
Result of 4 packages built:
|
What's the status of this pr? |
@amjoseph-nixpkgs can you email, or matrix me (@colemickens:matrix.org)? I am quite intrigued at the Crate2nix and have a little spike related to this PR and your comments that you might be interested in, and that I could use your advice on. |
Can't wait for this tbh |
I'll be able to revisit this once we have #247442. |
#247442 has been merged into staging. |
I've updated this to take advantage of #257411, which was the last change I wanted to make. I think this is ready now. |
Should a tracking issue be made for COSMIC in general? |
Wouldn't that be #199563? |
@colemickens I'm digging myself out from under a huge backlog right now. Give me some time to get caught up. |
i'm not sure how different these OSs are, but as expected i didn't quite manage to get this up and running on nixos yet:
i'd be curious if anyone has had more success there. 🙏 |
I tried it, I added all the cosmic-packages to environment.Systempackages, as I try to start cosmic-comp in a tty, I get a few Errors, that it can't read a few Configs, like something with xdg and input and doesn't start at all |
I'm still waiting for the long-overdue merge of |
Description of changes
This is the bare minimum that was necessary for me to have a usable COSMIC environment. (With just cosmic-comp, there's no way to e.g. start an application.) There are many more components of COSMIC that are not included here.
Since I know a lot of people have been waiting for this, I'll do some expectation management: This is enough to get COSMIC running, but I haven't done any work to integrate COSMIC into NixOS, because running it on NixOS is not my use case. It will probably work if you add all the packages to environment.systemPackages (because COSMIC relies on some stuff being globally available), and run cosmic-comp and cosmic-panel manually.
Also, COSMIC is pretty usable now, but it's still in very active development. Please be mindful of that when interacting with upstream. I've made sure that upstream is okay with us having it packaged in Nixpkgs.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)