summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2019-08-04 02:21:42 +0200
committerMarius Bakke <mbakke@fastmail.com>2019-08-04 13:33:42 +0200
commite920037793faeebf8fb2a918b50a1751b125a0af (patch)
tree30ee969d928eea36d66706d1088d5d2a71260eb2
parent7f2e852267d3484c3b0a3457ad6f3f9ad4debe6a (diff)
downloadpatches-e920037793faeebf8fb2a918b50a1751b125a0af.tar
patches-e920037793faeebf8fb2a918b50a1751b125a0af.tar.gz
gnu: docker-cli: Print a usable version string.
* gnu/packages/docker.scm (docker-cli)[arguments]<#:phases>: Set the VERSION variable before building the package.
-rw-r--r--gnu/packages/docker.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm
index 18e7bea724..0f47eaf236 100644
--- a/gnu/packages/docker.scm
+++ b/gnu/packages/docker.scm
@@ -586,6 +586,9 @@ provisioning etc.")
;; information, and the DWARF symbol table.
(setenv "LDFLAGS" "-s -w")
+ ;; Make sure "docker -v" prints a usable version string.
+ (setenv "VERSION" ,%docker-version)
+
;; Make build reproducible.
(setenv "BUILDTIME" "1970-01-01 00:00:01.000000000+00:00")
(symlink "src/github.com/docker/cli/scripts" "./scripts")