-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
espanso: 0.7.3 -> 2.1.8 #231062
espanso: 0.7.3 -> 2.1.8 #231062
Conversation
e477054
to
454100a
Compare
RE: you requesting a review from someone, I'll try to review it in the next few days if I have some time. |
Result of 2 packages blacklisted:
1 package built:
|
What is the minimal self-contained way to test this package? I tried
But nothing seems to happen when I type |
I've added a version test to check whether the executable at least works. To test its functionality I did the following:
After that typing |
Hmm, the build of darwin failed. My OSX laptop is broken at the moment, so I have limited ability to test it on OSX. I'll try to make the build work using OfBorg. |
Hmmm, this does not work for me, neither the replacement thingy. I wonder how to debug this with more logs?
|
I'm trying this on X11, maybe it isn't working yet on wayland? You can check the logs using |
6ca68fc
to
5f62743
Compare
See if I can trick github into behaving... |
I experimented with weston within X11 to determine what is going on with the Wayland build. The
Should there be an |
5f62743
to
3e2e2b8
Compare
(damnit too many tabs) |
Going with |
Looks like this was intended for #231103 |
3e2e2b8
to
0781aab
Compare
Is it ready for another review? |
I'm still trying to get this working on darwin using @NixOS/ofborg 🤞 it works this time. Other than that, content-wise this is ready for review. I'll clean up the commits when the darwin build succeeds on ofborg. |
Running nixpkgs-review on Darwin for you. |
This does not eval at all on Darwin:
|
eaac5c4
to
108a61b
Compare
Sorry, I've fixed the issue. I'm blindly handling darwin support using the builds/buildlogs of OfBorg, so this is quite a slow process for me. Any suggestions on how to do this without a Macbook? Maybe the darwin platform should be removed for espanso for now until someone picks up the work for MacOS again. |
Unfortunately, I have an access to a Darwin remote builder for this type of work, but this is not easy to do. |
Result of 1 package built:
|
@bobvanderlinden I can help with darwin builds. This patch makes it buildable on darwin: knl@4dfe7e3 -- |
I spoke a bit too soon. This gives an executable on darwin, but the Application crashes when ran from Finder. I'm looking at to how to fix the crash. |
Made some progress here: knl@5fda294. However, it still doesn't work out of the box. When I start the application, I'm prompted by the "Enable Accessibility" prompt. However, the entry there is not "Espanso", but "bash". Once I enable it for bash, the prompt disappears, however, the daemon doesn't work. If I instead manually start I don't know how to go around this issue, suggestions welcome :) |
Woow, nice work! 👍 Looks like a good step forward. I guess the wrapping bash script is what is given permissions and not the application itself. Is the wrapping bash script needed for OSX? Could it be related to espanso/espanso#1375? I've cherry-picked your first commit. Though I wasn't sure about the second one. Wrapping the executable for runtime libraries seems like something is wrong with the search paths during the build. Is it not able to find libraries at runtime? |
96284b6
to
15c4146
Compare
15c4146
to
f28bc28
Compare
Result of 1 package blacklisted:
2 packages built:
|
Result of 1 package built:
|
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
Result of 1 package built:
|
This PR also removes |
Description of changes
Follow-up from #208949
ZHF: #230712
This is a major update of espanso, with breaking(but fixable) changes.
The version that is currently in Nixpkgs (0.7.3) fails to build.
I've incorporated the feedback from #208949 and updated to the latest nixpkgs-unstable.
There is a git-based dependency in Cargo.lock, so I needed to copy the Cargo.lock as described in https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#buildrustpackage-compiling-rust-applications-with-cargo-compiling-rust-applications-with-cargo
I also added a
x11Support
option. By default both wayland and x11 are supported, but support may be disabled if one wants a smaller package. It should now work for both x11 and wayland users out-of-the-box. Unfortunately espanso always needs libx11, even ifNO_X11=true
is set.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/
)