diff --git a/pkgs/by-name/co/containerlab/package.nix b/pkgs/by-name/co/containerlab/package.nix index 63b181c26168..f0f2b220ecab 100644 --- a/pkgs/by-name/co/containerlab/package.nix +++ b/pkgs/by-name/co/containerlab/package.nix @@ -8,16 +8,16 @@ buildGoModule (finalAttrs: { pname = "containerlab"; - version = "0.69.3"; + version = "0.70.2"; src = fetchFromGitHub { owner = "srl-labs"; repo = "containerlab"; tag = "v${finalAttrs.version}"; - hash = "sha256-RJNJ5LUCGaARn5NOSepTL/0Owr/ozFUYAvlynDTyqfY="; + hash = "sha256-QBv0SZ7XxVc0yWbOxPKdfzk9AKYlMJyeZwpAx1jbamk="; }; - vendorHash = "sha256-28Q1R6P2rpER5RxagnsKy9W3b4FUeRRbkPPovzag//U="; + vendorHash = "sha256-XttJ/GXhNKVHLR33A/o3N3OYHsyKWHBhD5QOz0AlfFk="; nativeBuildInputs = [ installShellFiles @@ -27,9 +27,9 @@ buildGoModule (finalAttrs: { ldflags = [ "-s" "-w" - "-X github.com/srl-labs/containerlab/cmd/version.Version=${finalAttrs.version}" - "-X github.com/srl-labs/containerlab/cmd/version.commit=${finalAttrs.src.rev}" - "-X github.com/srl-labs/containerlab/cmd/version.date=1970-01-01T00:00:00Z" + "-X github.com/srl-labs/containerlab/cmd.Version=${finalAttrs.version}" + "-X github.com/srl-labs/containerlab/cmd.commit=${finalAttrs.src.rev}" + "-X github.com/srl-labs/containerlab/cmd.date=1970-01-01T00:00:00Z" ]; preCheck = '' @@ -37,9 +37,10 @@ buildGoModule (finalAttrs: { export USER="runner" ''; - # TestVerifyLinks wants to use docker.sock, which is not available in the Nix build environment. + # TestVerifyLinks wants to use docker.sock which is not available in the Nix build env + # KernelModulesLoaded wants to use /proc/modules which is not available in Nix build env checkFlags = [ - "-skip=^TestVerifyLinks$" + "-skip=^TestVerifyLinks$|^TestIsKernelModuleLoaded$" ]; postInstall = ''