Fixing the wrong Git Commit hash in docker version

`DOCKER_GITCOMMIT` needs to match the tagged commit used to build the
binary. The current commit refers to 1.12.1 and wasn't update each
time we updated the package. Using a variable near the version and
adding a comment so we don't forget to update next time.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-01-23 10:32:17 +01:00
parent 13d6681ce7
commit d79fa8850a
No known key found for this signature in database
GPG Key ID: 083CC6FD6EB699A3

View File

@ -12,6 +12,7 @@ with lib;
stdenv.mkDerivation rec {
name = "docker-${version}";
version = "1.13.0";
rev = "49bf474"; # should match the version commit
src = fetchFromGitHub {
owner = "docker";
@ -79,7 +80,7 @@ stdenv.mkDerivation rec {
buildPhase = ''
patchShebangs .
export AUTO_GOPATH=1
export DOCKER_GITCOMMIT="23cf638"
export DOCKER_GITCOMMIT="${rev}"
./hack/make.sh dynbinary
'';