elkowar / eww

ElKowars wacky widgets
https://elkowar.github.io/eww
MIT License
9.19k stars 377 forks source link

[FEATURE] Add m1/aarch64-darwin support #353

Open shaunsingh opened 2 years ago

shaunsingh commented 2 years ago

Description of the requested feature

Add aarch64-darwin (m1) support for macOS, currently the flake fails with the following output:

~/nix-darwin-dotfiles (main ~~9 ...4) λ nix build ~/nix-darwin-dotfiles\#darwinConfigurations.shaunsingh-laptop.system
warning: Git tree '/Users/shauryasingh/nix-darwin-dotfiles' is dirty
error: attribute 'aarch64-darwin' missing

       at /nix/store/mgcpf2l79r3zwq937k51cv8d74376c3q-source/flake.nix:21:23:

           20|
           21|         naersk-lib = (naersk.lib."${system}".override {
             |                       ^
           22|           cargo = pkgs.cargo;
(use '--show-trace' to show detailed location information)

Additional context

https://github.com/nix-community/naersk/commit/ee7edec50b49ab6d69b06d62f1de554efccb1ccd naersk supports aarch64-darwin, not sure whats the issue. This fix was also implemented 4 months back, and the flake.lock was update 2 months back

shaunsingh commented 2 years ago

For testing, I overrode the inputs and matched them with the latest from github: https://github.com/shaunsingh/nixpkgs-s2k/blob/2b5abc67bc3bec1fa5d514c1eb53e32559bb2fb8/flake.nix#L60, same error. @AusCyberman any idea, I'm not very experienced with nix flakes

auscyber commented 2 years ago

this could be that naersk straight up doesn't support aarch64-darwin. ill do some research

shaunsingh commented 2 years ago

This project https://github.com/yaxitech/ragenix supports aarch64-darwin and uses naersk, so I think it should be possible

elkowar commented 2 years ago

Even if you did manage to compile this on MacOS, it'd not actually be all that useful, as we currently don't interact with the macos display server at all, and thus eww behaves like any normal window (again, assuming this works at all). Then, because MacOS and GTK are weird, from what I've heard eww doesn't even behave like a normal window, but also get's completely ignored by things like yabai, making it impossible to actually position the window where you want it.

This is sadly not really feasible for me to fix, as maintaining support for a platform I have absolutely no way of developing for or even just testing on is not something I'd be willing to do

auscyber commented 2 years ago

maybe someone could actually start developing for it, anyone in up who uses mac?


From: ElKowar @.> Sent: Thursday, November 18, 2021 11:24:00 PM To: elkowar/eww @.> Cc: AusCyberman @.>; Mention @.> Subject: Re: [elkowar/eww] [FEATURE] Add m1/aarch64-darwin support (Issue #353)

Even if you did manage to compile this on MacOS, it'd not actually be all that useful, as we currently don't interact with the macos display server at all, and thus eww behaves like any normal window (again, assuming this works at all). Then, because MacOS and GTK are weird, from what I've heard eww doesn't even behave like a normal window, but also get's completely ignored by things like yabai, making it impossible to actually position the window where you want it.

This is sadly not really feasible for me to fix, as maintaining support for a platform I have absolutely no way of developing for or even just testing on is not something I'd be willing to do

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/elkowar/eww/issues/353#issuecomment-972818748, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC4FK5RXTMHTDZDPN5VHHHLUMTV6BANCNFSM5ICZTBJQ.

elkowar commented 2 years ago

see, even in that case, the build would probably constantly break, and I'm not even sure how you'd do CI for a mac build and test ^^'