From 627cc1411bab7a0bcb01d74102e1d0f293c9d416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 12 Jun 2022 15:10:57 +0100 Subject: [PATCH] fix the way thne version is calculated in the build script, --- matrix/matrix-media-repo/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/matrix-media-repo/default.nix b/matrix/matrix-media-repo/default.nix index e9995fa..e7b86ee 100644 --- a/matrix/matrix-media-repo/default.nix +++ b/matrix/matrix-media-repo/default.nix @@ -18,7 +18,7 @@ in { buildPhase = '' GOBIN=$PWD/bin go install -v ./cmd/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 = '' mkdir $out