free5gc-n3iwf: init at 1.3.3

This commit is contained in:
Nico Felbinger
2026-05-02 00:57:08 +02:00
parent 99f5c878fe
commit 5e76434b95

View File

@@ -0,0 +1,53 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "free5gc-n3iwf";
version = "1.3.3";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "free5gc";
repo = "n3iwf";
tag = "v${finalAttrs.version}";
hash = "sha256-BFr+d8YQNXcHcOgYZxuh+IFJ9/nMxEEDtTgbzhiFKCY=";
};
vendorHash = "sha256-tvMyRV/a40ubPoT1uGxZ1g2q4qJ3K9fof7Xt5IN8vC4=";
ldflags = [
"-X github.com/free5gc/util/version.VERSION=v${finalAttrs.version}"
];
postInstall = ''
mv -v $out/bin/cmd $out/bin/free5gc-n3iwf
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "irrelevant"; # has no version flag, empty string didn't work
checkFlags = [
"-skip TestCheckIKEMessage"
# --- FAIL: TestCheckIKEMessage (0.00s)
# Error Trace: /build/source/internal/ike/server_test.go:170
# Error: Received unexpected error: dial udp 10.100.100.2:500: connect: network is unreachable
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Open source 5G core network based on 3GPP R15";
homepage = "https://free5gc.org/";
changelog = "https://github.com/free5gc/n3iwf/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ felbinger ];
platforms = lib.platforms.linux;
mainProgram = "free5gc-n3iwf";
};
})