gnu: docker-cli: Print a usable version string.

* gnu/packages/docker.scm (docker-cli)[arguments]<#:phases>: Set the VERSION
variable before building the package.
This commit is contained in:
Marius Bakke 2019-08-04 02:21:42 +02:00
parent 7f2e852267
commit e920037793
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 3 additions and 0 deletions

View File

@ -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")