diff --git a/pkgs/tools/text/d2/default.nix b/pkgs/tools/text/d2/default.nix index a60c9114e033..db3cb81dc41d 100644 --- a/pkgs/tools/text/d2/default.nix +++ b/pkgs/tools/text/d2/default.nix @@ -25,7 +25,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X oss.terrastruct.com/d2/lib/version.Version=${version}" + "-X oss.terrastruct.com/d2/lib/version.Version=v${version}" ]; nativeBuildInputs = [ installShellFiles ]; @@ -41,7 +41,10 @@ buildGoModule rec { export TESTDATA_ACCEPT=1 ''; - passthru.tests.version = testers.testVersion { package = d2; }; + passthru.tests.version = testers.testVersion { + package = d2; + version = "v${version}"; + }; meta = with lib; { description = "A modern diagram scripting language that turns text to diagrams";