@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, which, buildGoPackage }:
1+{ stdenv, fetchFromGitHub, which, buildGoPackage, utillinux, coreutils }:
22
33let
44 version = "3.6.0";
@@ -22,6 +22,17 @@ in buildGoPackage rec {
2222 goPackagePath = null;
2323 patchPhase = ''
2424 patchShebangs ./hack
25+ substituteInPlace pkg/bootstrap/docker/host/host.go \
26+ --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt findmnt' \
27+ 'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/findmnt'
28+
29+ substituteInPlace pkg/bootstrap/docker/host/host.go \
30+ --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mount' \
31+ 'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/mount'
32+
33+ substituteInPlace pkg/bootstrap/docker/host/host.go \
34+ --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mkdir' \
35+ 'nsenter --mount=/rootfs/proc/1/ns/mnt ${coreutils}/bin/mount'
2536 '';
2637
2738 buildPhase = ''