uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/tools/networking/openconnect/common.nix
Normal file
45
pkgs/tools/networking/openconnect/common.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ version
|
||||
, src
|
||||
}:
|
||||
|
||||
{ lib
|
||||
, stdenv
|
||||
, pkg-config
|
||||
, gnutls
|
||||
, p11-kit
|
||||
, openssl
|
||||
, useOpenSSL ? false
|
||||
, gmp
|
||||
, libxml2
|
||||
, stoken
|
||||
, zlib
|
||||
, vpnc-scripts
|
||||
, PCSC
|
||||
, autoreconfHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
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.optional stdenv.isDarwin PCSC
|
||||
++ lib.optional stdenv.isLinux p11-kit;
|
||||
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; [ pradeepchhetri tricktron alyaeanyx ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue