try add-to-root

This commit is contained in:
Valentin Boettcher 2022-12-13 15:26:22 -05:00
parent a13ac716a2
commit 90714b1950
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -213,7 +213,11 @@
${name} = pkgs.${name};
"${name}Docker" = pkgs.dockerTools.buildImage {
name = "${name}";
buildInputs = [pkgs.${name}];
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.${name} (shellPackages pkgs) ];
pathsToLink = [ "/bin" ];
};
};
};