···5 callPackage,
6 closureInfo,
7 coreutils,
8- docker,
9 e2fsprogs,
10 fakeroot,
11 findutils,
···17 moreutils,
18 nix,
19 pigz,
020 rsync,
21 runCommand,
22 runtimeShell,
···123124 # We need to sum layer.tar, not a directory, hence tarsum instead of nix-hash.
125 # And we cannot untar it, because then we cannot preserve permissions etc.
126- tarsum = runCommand "tarsum" {
127- nativeBuildInputs = [ go ];
128- } ''
129- mkdir tarsum
130- cd tarsum
131-132- cp ${./tarsum.go} tarsum.go
133- export GOPATH=$(pwd)
134- export GOCACHE="$TMPDIR/go-cache"
135- export GO111MODULE=off
136- mkdir -p src/github.com/docker/docker/pkg
137- ln -sT ${docker.moby-src}/pkg/tarsum src/github.com/docker/docker/pkg/tarsum
138- go build
139-140- mkdir -p $out/bin
141-142- cp tarsum $out/bin/
143- '';
144145 # buildEnv creates symlinks to dirs, which is hard to edit inside the overlay VM
146 mergeDrvs = {
···5 callPackage,
6 closureInfo,
7 coreutils,
08 e2fsprogs,
9 fakeroot,
10 findutils,
···16 moreutils,
17 nix,
18 pigz,
19+ pkgs,
20 rsync,
21 runCommand,
22 runtimeShell,
···123124 # We need to sum layer.tar, not a directory, hence tarsum instead of nix-hash.
125 # And we cannot untar it, because then we cannot preserve permissions etc.
126+ tarsum = pkgs.tarsum;
00000000000000000127128 # buildEnv creates symlinks to dirs, which is hard to edit inside the overlay VM
129 mergeDrvs = {