-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
openconnect-globalprotect: init at 7.08 #49927
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
Conversation
description = "VPN Client for Cisco's AnyConnect SSL VPN"; | ||
homepage = http://www.infradead.org/openconnect/; | ||
license = stdenv.lib.licenses.lgpl21; | ||
maintainers = with stdenv.lib.maintainers; [ pradeepchhetri ]; |
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.
Is this you, or did you agree with this person to add them as a maintainer? :)
stdenv.mkDerivation rec { | ||
name = "openconnect-globalprotect-7.08"; | ||
|
||
src = fetchGit { |
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.
Please use fetchFromGitHub
here :)
ref = "globalprotect"; | ||
}; | ||
|
||
outputs = [ "out" "dev" ]; |
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.
Does this really create a meaningful dev output? What does it include?
]; | ||
|
||
nativeBuildInputs = [ autoconf automake pkgconfig libtool ]; | ||
propagatedBuildInputs = [ vpnc openssl gnutls gmp libxml2 stoken zlib ]; |
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.
Some of these seem very surprising to me. Why is zlib propagated for example? What's it needed by?
@@ -5980,6 +5980,16 @@ with pkgs; | |||
openssl = null; | |||
}; | |||
|
|||
openconnect-globalprotect = openconnect-globalprotect_gnutls; |
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 think this attribute will be enough for the top level, and leave the rest of the configuration to overrides. Three versions seems a bit much.
gnutls = null; | ||
}; | ||
|
||
openconnect-globalprotect_gnutls = callPackage ../tools/networking/openconnect-globalprotect { |
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.
why would we need both openssl and gnutls?
Note that latest release 8.0+ of openconnect includes the globalprotect protocol so this should not be needed. http://www.infradead.org/openconnect/changelog.html. That said we still need openconnect to be updated to the latest release. |
8.02 was merged in master with #54060 |
Motivation for this change
openconnect
doesn't support GlobalProtect out of the box, the fork of dlenski does.Note that AUR also has this package, under the name openconnect-palo.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)