2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-26 07:34:11 +00:00
nixpkgs/pkgs/tools/networking/openconnect/default.nix
Rahul Rameshbabu abf4c42e78
openconnect: add xdg-utils build dependency ()
libopenconnect >=9.00 added support for a DEFAULT_EXTERNAL_BROWSER build value
that enables support for using xdg-open to spawn an external browser from
consumers of the library such as GNOME/NetworkManager-openconnect. This
functionality is needed to support external browser SAML authentication flows
for various VPN protocols supported by libopenconnect.
2023-01-09 15:12:02 -05:00

29 lines
788 B
Nix

{ callPackage, fetchFromGitLab, fetchurl, darwin }:
let
common = opts: callPackage (import ./common.nix opts) {
inherit (darwin.apple_sdk.frameworks) PCSC;
};
in rec {
openconnect = common rec {
version = "9.01";
src = fetchurl {
url = "ftp://ftp.infradead.org/pub/openconnect/openconnect-${version}.tar.gz";
sha256 = "sha256-s9f6+DDpeTKZ1qQegdhM1KPieJwUjJ5ZjkWFAQCQ5Mc=";
};
};
openconnect_unstable = common {
version = "unstable-2022-03-14";
src = fetchFromGitLab {
owner = "openconnect";
repo = "openconnect";
rev = "a27a46f1362978db9723c8730f2533516b4b31b1";
sha256 = "sha256-Kz98GHCyEcx7vUF+AXMLR7886+iKGKNwx1iRaYcH8ps=";
};
};
openconnect_openssl = openconnect.override {
useOpenSSL = true;
};
}