File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
pkgs/by-name/co/containerlab Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 33 buildGoModule ,
44 fetchFromGitHub ,
55 installShellFiles ,
6+ versionCheckHook ,
67} :
78
89buildGoModule rec {
@@ -23,9 +24,9 @@ buildGoModule rec {
2324 ldflags = [
2425 "-s"
2526 "-w"
26- "-X github.com/srl-labs/containerlab/cmd. version=${ version } "
27- "-X github.com/srl-labs/containerlab/cmd.commit=${ src . rev } "
28- "-X github.com/srl-labs/containerlab/cmd.date=1970-01-01T00:00:00Z"
27+ "-X github.com/srl-labs/containerlab/cmd/ version.Version =${ version } "
28+ "-X github.com/srl-labs/containerlab/cmd/version .commit=${ src . rev } "
29+ "-X github.com/srl-labs/containerlab/cmd/version .date=1970-01-01T00:00:00Z"
2930 ] ;
3031
3132 preCheck = ''
@@ -41,6 +42,12 @@ buildGoModule rec {
4142 --zsh <($out/bin/containerlab completion zsh)
4243 '' ;
4344
45+ nativeInstallCheckInputs = [
46+ versionCheckHook
47+ ] ;
48+ doInstallCheck = true ;
49+ versionCheckProgramArg = "version" ;
50+
4451 meta = {
4552 description = "Container-based networking lab" ;
4653 homepage = "https://containerlab.dev/" ;
You can’t perform that action at this time.
0 commit comments