fix the way thne version is calculated in the build script,

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-12 15:10:57 +01:00
parent 22fc27545e
commit 627cc1411b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -18,7 +18,7 @@ in {
buildPhase = '' buildPhase = ''
GOBIN=$PWD/bin go install -v ./cmd/compile_assets GOBIN=$PWD/bin go install -v ./cmd/compile_assets
$PWD/bin/compile_assets $PWD/bin/compile_assets
GOBIN=$PWD/bin go install -ldflags "-X github.com/turt2live/matrix-media-repo/common/version.GitCommit=$(git rev-list -1 HEAD) -X github.com/turt2live/matrix-media-repo/common/version.Version=$(git describe --tags)" -v ./cmd/... GOBIN=$PWD/bin go install -ldflags "-X github.com/turt2live/matrix-media-repo/common/version.GitCommit=$(git rev-list -1 HEAD) -X github.com/turt2live/matrix-media-repo/common/version.Version=${version}" -v ./cmd/...
''; '';
installPhase = '' installPhase = ''
mkdir $out mkdir $out