Join packages with the same root folder


I trying to create a bundle (for Docker image) with few derivations:

  • util-linux
  • openssl
  • my script interpreter → $out/release/… binaries …
  • pack of scripts → $out/release/… scripts …

With buildEnv it looks like:

bundle = buildEnv {
  paths = [ openssl util-linux my-interpreter my-scripts ];

I was expecting a package with an interpreter and scripts placed into /release, but I got only a symlink to “/release” of scripts, or a folder /release with symlinks to scripts in a case of pathsToLink = ["/release"]

util-linux and openssl are merged fine into /bin, /lib, etc.

Would you suggest why my packages are not merged instead of binaries from nixpkgs?