mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
free5gc-smf: init at 1.4.3
This commit is contained in:
46
pkgs/by-name/fr/free5gc-smf/package.nix
Normal file
46
pkgs/by-name/fr/free5gc-smf/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user