Commit 6c83a7c6 authored by Sebastian Rieger's avatar Sebastian Rieger
Browse files

containerlab: add version check

checks the version after building the package as suggested by @Aleksanaa
parent 63714311
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  buildGoModule,
  fetchFromGitHub,
  installShellFiles,
  versionCheckHook
}:

buildGoModule rec {
@@ -41,6 +42,12 @@ buildGoModule rec {
      --zsh <($out/bin/containerlab completion zsh)
  '';

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;
  versionCheckProgramArg = "version";

  meta = {
    description = "Container-based networking lab";
    homepage = "https://containerlab.dev/";