dapr-cli: adds version information with build flags
Signed-off-by: joshvanl <me@joshvanl.dev>
This commit is contained in:
parent
75820c9e4a
commit
95abc8a503
1 changed files with 8 additions and 1 deletions
|
@ -19,6 +19,13 @@ buildGoModule rec {
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-X main.version=${version}"
|
||||||
|
"-X main.apiVersion=1.0"
|
||||||
|
"-X github.com/dapr/cli/pkg/standalone.gitcommit=${src.rev}"
|
||||||
|
"-X github.com/dapr/cli/pkg/standalone.gitversion=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/cli $out/bin/dapr
|
mv $out/bin/cli $out/bin/dapr
|
||||||
|
|
||||||
|
@ -31,7 +38,7 @@ buildGoModule rec {
|
||||||
description = "A CLI for managing Dapr, the distributed application runtime";
|
description = "A CLI for managing Dapr, the distributed application runtime";
|
||||||
homepage = "https://dapr.io";
|
homepage = "https://dapr.io";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ lucperkins ];
|
maintainers = with maintainers; [ joshvanl lucperkins ];
|
||||||
mainProgram = "dapr";
|
mainProgram = "dapr";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue