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
44
pkgs/os-specific/linux/wireguard/default.nix
Normal file
44
pkgs/os-specific/linux/wireguard/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchzip, kernel, perl, wireguard-tools, bc }:
|
||||
|
||||
# wireguard upstreamed since 5.6 https://lists.zx2c4.com/pipermail/wireguard/2019-December/004704.html
|
||||
assert lib.versionOlder kernel.version "5.6";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wireguard";
|
||||
version = "1.0.20211208";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${version}.tar.xz";
|
||||
sha256 = "sha256-MHC4ojhRD8IGwTUE8oEew8IVof9hQCC7CPgVQIBfBRQ=";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
|
||||
nativeBuildInputs = [ perl bc ] ++ kernel.moduleBuildDependencies;
|
||||
|
||||
preBuild = "cd src";
|
||||
buildFlags = [ "module" ];
|
||||
|
||||
INSTALL_MOD_PATH = placeholder "out";
|
||||
installFlags = [ "DEPMOD=true" ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru = {
|
||||
# remove this when our kernel comes with native wireguard support
|
||||
# and our tests no longer tests this package
|
||||
inherit (wireguard-tools) tests;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
inherit (wireguard-tools.meta) homepage license maintainers;
|
||||
description = "Kernel module for the WireGuard secure network tunnel";
|
||||
longDescription = ''
|
||||
Backport of WireGuard for kernels 3.10 to 5.5, as an out of tree module.
|
||||
(as WireGuard was merged into the Linux kernel for 5.6)
|
||||
'';
|
||||
downloadPage = "https://git.zx2c4.com/wireguard-linux-compat/refs/";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue