docker: fix build on i686

This commit is contained in:
Domen Kožar 2015-08-27 13:22:29 +02:00
parent 0392197226
commit e65fce3af6

View File

@ -1,6 +1,8 @@
{ stdenv, fetchFromGitHub, makeWrapper, go, lxc, sqlite, iproute, bridge-utils, devicemapper,
btrfsProgs, iptables, bash, e2fsprogs, xz}:
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md
stdenv.mkDerivation rec {
name = "docker-${version}";
version = "1.8.1";
@ -16,6 +18,11 @@ stdenv.mkDerivation rec {
dontStrip = true;
preConfigure = ''
mv vendor/src/github.com/opencontainers/runc/libcontainer/seccomp/{jump_amd64.go,jump_linux.go}
sed -i 's/,amd64//' vendor/src/github.com/opencontainers/runc/libcontainer/seccomp/jump_linux.go
'';
buildPhase = ''
patchShebangs .
export AUTO_GOPATH=1