Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{
|
|
version,
|
|
src,
|
|
}:
|
|
|
|
{
|
|
lib,
|
|
stdenv,
|
|
pkg-config,
|
|
gnutls,
|
|
p11-kit,
|
|
openssl,
|
|
useOpenSSL ? false,
|
|
gmp,
|
|
libxml2,
|
|
stoken,
|
|
zlib,
|
|
pcsclite,
|
|
vpnc-scripts,
|
|
useDefaultExternalBrowser ?
|
|
stdenv.hostPlatform.isLinux && stdenv.buildPlatform == stdenv.hostPlatform, # xdg-utils doesn't cross-compile
|
|
xdg-utils,
|
|
autoreconfHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "openconnect";
|
|
inherit version src;
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-vpnc-script=${vpnc-scripts}/bin/vpnc-script"
|
|
"--disable-nls"
|
|
"--without-openssl-version-check"
|
|
];
|
|
|
|
buildInputs = [
|
|
gmp
|
|
libxml2
|
|
stoken
|
|
zlib
|
|
(if useOpenSSL then openssl else gnutls)
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
p11-kit
|
|
pcsclite
|
|
]
|
|
++ lib.optional useDefaultExternalBrowser xdg-utils;
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
autoreconfHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "VPN Client for Cisco's AnyConnect SSL VPN";
|
|
homepage = "https://www.infradead.org/openconnect/";
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [
|
|
tricktron
|
|
pentane
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "openconnect";
|
|
};
|
|
}
|