free5gc-smf: init at 1.4.3

This commit is contained in:
Nico Felbinger
2026-05-02 00:57:45 +02:00
parent 5f39535e32
commit 6c698bd4df

View File

@@ -0,0 +1,46 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "free5gc-smf";
version = "1.4.3";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "free5gc";
repo = "smf";
tag = "v${finalAttrs.version}";
hash = "sha256-V5Z0AZMloCRgsCI0j8j9dnb2a+gKhu3M29Po3wY0RMk=";
};
vendorHash = "sha256-8sVuhlLN00TxTaQFtETvsuAIoW3yjy/CBGF4PQp2XQ4=";
ldflags = [
"-X github.com/free5gc/util/version.VERSION=v${finalAttrs.version}"
];
postInstall = ''
mv -v $out/bin/cmd $out/bin/free5gc-smf
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "irrelevant"; # has no version flag, empty string didn't work
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/smf/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ felbinger ];
platforms = lib.platforms.linux;
mainProgram = "free5gc-smf";
};
})