Skip to content

Conversation

jcszymansk
Copy link
Contributor

I updated the project so it can build on current NixOS with flakes, after the removal of poetry2nix from nixpkgs.

Unfortunately I wasn't able to make it work with nix2poetry 1.41.0 which you use with niv.

@abaga129
Copy link

I can verify this works for me.
I cloned your fork and ran the following to install it.

nix build
sudo nix-env -i ./result

Thank you very much!

@bast
Copy link

bast commented Jun 7, 2024

Worked on my side. Thanks a lot for the fix!

enadeau added a commit to enadeau/openconnect-sso that referenced this pull request Jun 19, 2024
Applied changes from vlaci#178
@turbotimon
Copy link

turbotimon commented Feb 12, 2025

This may conflicts with #152

(i'm not sure which is the better fix. if merged, #186 #156 should be closed)

@Gipphe
Copy link

Gipphe commented Jun 27, 2025

Using this branch in a flake, I encountered issues with missing runtime dependencies. Forcing openconnect-sso to use a specific commit of nixpkgs fixed it:

In flake.nix:

{
  inputs = {
    # ...
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # Or any other nixpkgs branch
    openconnect-sso = {
      url = "github:jcszymansk/openconnect-sso";
      inputs.nixpkgs.follows = "nixpkgs-openconnect-sso";
    };
    nixpkgs-openconnect-sso.url = "github:nixos/nixpkgs/46397778ef1f73414b03ed553a3368f0e7e33c2f";
  };
  outputs = { nixpkgs, ...}@inputs: {
    # ...
  };
}

And then use it like normal in your configuration:

{inputs, pkgs, ...}: {
  # ...
  environment.systemPackages = [
    inputs.openconnect-sso.packages.${pkgs.system}.openconnect-sso
  ];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants