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
42
pkgs/tools/networking/vpnc/default.nix
Normal file
42
pkgs/tools/networking/vpnc/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
||||
, makeWrapper, pkg-config, perl
|
||||
, gawk, gnutls, libgcrypt, openresolv, vpnc-scripts
|
||||
, opensslSupport ? false, openssl # Distributing this is a GPL violation.
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "vpnc";
|
||||
version = "unstable-2021-11-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "streambinder";
|
||||
repo = "vpnc";
|
||||
rev = "c8bb5371b881f8853f191c495e762f834c9def5d";
|
||||
sha256 = "1j1p83nfc2fpwczjcggsby0b44hk97ky0s6vns6md3awlbpgdn57";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ]
|
||||
++ lib.optional (!opensslSupport) pkg-config;
|
||||
buildInputs = [ libgcrypt perl ]
|
||||
++ (if opensslSupport then [ openssl ] else [ gnutls ]);
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"ETCDIR=$(out)/etc/vpnc"
|
||||
"SCRIPT_PATH=${vpnc-scripts}/bin/vpnc-script"
|
||||
] ++ lib.optional opensslSupport "OPENSSL_GPL_VIOLATION=yes";
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs src/makeman.pl
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://davidepucci.it/doc/vpnc/";
|
||||
description = "Virtual private network (VPN) client for Cisco's VPN concentrators";
|
||||
license = if opensslSupport then licenses.unfree else licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue