8 , runc # Default container runtime
9 , crun # Container runtime (default with cgroups v2 for podman/buildah)
10 , conmon # Container runtime monitor
11 , slirp4netns # User-mode networking for unprivileged namespaces
12 , fuse-overlayfs # CoW for images, much faster than default vfs
13 , util-linux # nsenter
20 binPath = lib.makeBinPath ([
21 ] ++ lib.optionals stdenv.isLinux [
31 helpersBin = symlinkJoin {
32 name = "${buildah-unwrapped.pname}-helper-binary-wrapper-${buildah-unwrapped.version}";
34 # this only works for some binaries, others may need to be be added to `binPath` or in the modules
36 ] ++ lib.optionals stdenv.isLinux [
42 in runCommand buildah-unwrapped.name {
43 name = "${buildah-unwrapped.pname}-wrapper-${buildah-unwrapped.version}";
44 inherit (buildah-unwrapped) pname version passthru;
46 preferLocalBuild = true;
48 meta = builtins.removeAttrs buildah-unwrapped.meta [ "outputsToInstall" ];
60 ln -s ${buildah-unwrapped.man} $man
63 ln -s ${buildah-unwrapped}/share $out/share
64 makeWrapper ${buildah-unwrapped}/bin/buildah $out/bin/buildah \
65 --set CONTAINERS_HELPER_BINARY_DIR ${helpersBin}/bin \
66 --prefix PATH : ${binPath}