-
Notifications
You must be signed in to change notification settings - Fork 130
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
fix(build): update nix flake to work with current NixOS unstable #152
base: master
Are you sure you want to change the base?
Conversation
Niv appears to work too, but I haven't tested that as much. Changes (sorry single big commit, but this was hard enough as is): - don't use the overlay for nixpkgs since it's not used ATM - when using a flake, respect the given inputs instead of using Niv ones - update dependencies to Qt6 to match `pyproject.toml` - fix coredump on Wayland because of missing runtime dependency - fix build-system to use the newer `poetry-core` - update poetry.lock - make flake inputs and Niv sources poetry2nix versions match
Example: "QApplication: invalid style override 'kvantum' passed, ignoring it."
A big thank you for all this effort! As AnyConnect is far from usable on NixOS, this contribution is precious. With this and given my first try resulted in an error, how are you using this recipe? On NixOS-23.11 I'm seeing:
when I enable the code in this PR via:
|
`prev.callPackage` auto-detects the given closure's args and sets them to `prev.${arg}`. So `poetry2nix` was getting overriden with `prev.poetry2nix` giving us the "poetry2nix is now maintained out-of-tree" error.
I pushed a fix for the overlay! Let me know if that works for you.
Not sure why that was using Just for reference, I'm using it via the flake so that all inputs are pinned. And if needed I can change
inputs = {
openconnect-sso = {
url = github:ThinkChaos/openconnect-sso/fix/nix-flake;
inputs.flake-utils.follows = "utils";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
};
}
environment.systemPackages = [
inputs.openconnect-sso.packages.${config.nixpkgs.localSystem.system}.default
]; |
I can confirm that this PR works when I use the flake. I tested it by accessing PDFs from major publishers that I can only access when I am inside my institution's VPN. |
Confirming that this works. It seems to be a good workaround/solution for my troubles in #156. Thank you! |
This needs an addition to nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0"
]; But even then, this seems to not work anymore. I'm getting this when starting openconnect-sso:
The custom ssl config fixes the |
Also confirming that the latest changes now solve the installation issue I mentioned above. |
@XenGi to the best of my knowledge both your issues are unrelated to this PR:
|
ah ok. Thx for checking. I wasn't sure about that. Then I'll check for some other explanation. |
Applying vlaci#152
In case anyone wants a working version, you can find it here also created a PR to address all these issues: #181 |
Thanks, I'll give it a shot! |
Python dependency update is required to build with latest nixpkgs. Co-authored-by: adminy <[email protected]>
I updated the PR to use latest nixpkgs as now ( I didn't use all your changes @adminy since a lot of it seemed like separate concerns and not just fixing the build. I did add you as co-author though because I cherry-picked one hunk in |
And make Nix package use the lxml from nixpkgs, to allow building with a more recent version.
Pushed a commit to fix building with more recent nixpkgs that updated lxml to 5.x. |
So sorry, not sure what happened. PR is rebased. I'm no longer using the vpn client. So any further changes I won't be able to test. Its all up to you now :) |
Niv appears to work too, but I haven't tested that as much.
Changes (sorry single big commit, but this was hard enough as is):
pyproject.toml
poetry-core
Fixes #144 #156
Might fix #112 #109