linuxPackages.amneziawg: init at 1.0.20240711 (#331598)

authored by Sandro and committed by GitHub e1571aa9 681bc920

+53
+51
pkgs/os-specific/linux/amneziawg/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + srcOnly, 6 + kernel, 7 + nix-update-script, 8 + }: 9 + 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "amneziawg"; 12 + version = "1.0.20240711"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "amnezia-vpn"; 16 + repo = "amneziawg-linux-kernel-module"; 17 + rev = "refs/tags/v${finalAttrs.version}"; 18 + hash = "sha256-WOcBTxetVz2Sr62c+2aGNyohG2ydi+R+az+4qHbKprI="; 19 + }; 20 + 21 + sourceRoot = "${finalAttrs.src.name}/src"; 22 + hardeningDisable = [ "pic" ]; 23 + nativeBuildInputs = kernel.moduleBuildDependencies; 24 + 25 + buildFlags = [ 26 + "apply-patches" 27 + "module" 28 + ]; 29 + 30 + makeFlags = 31 + kernel.makeFlags 32 + ++ [ "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ] 33 + ++ lib.optional (lib.versionAtLeast kernel.version "5.6") "KERNEL_SOURCE_DIR=${srcOnly kernel}"; 34 + 35 + enableParallelBuilding = true; 36 + 37 + installFlags = [ 38 + "DEPMOD=true" 39 + "INSTALL_MOD_PATH=${placeholder "out"}" 40 + ]; 41 + 42 + passthru.updateScript = nix-update-script { }; 43 + 44 + meta = { 45 + description = "Kernel module for the AmneziaWG"; 46 + homepage = "https://amnezia.org"; 47 + license = lib.licenses.gpl2Only; 48 + maintainers = with lib.maintainers; [ averyanalex ]; 49 + platforms = lib.platforms.linux; 50 + }; 51 + })
+2
pkgs/top-level/linux-kernels.nix
··· 315 315 316 316 akvcam = callPackage ../os-specific/linux/akvcam { }; 317 317 318 + amneziawg = callPackage ../os-specific/linux/amneziawg { }; 319 + 318 320 apfs = callPackage ../os-specific/linux/apfs { }; 319 321 320 322 ax99100 = callPackage ../os-specific/linux/ax99100 {};