d2: fix version ldflag
This commit is contained in:
parent
3cda14a683
commit
6be6a06acf
1 changed files with 5 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue