nixpkgs/pkgs/stdenv/generic
Alyssa Ross a295c4566e
stdenv: fix inputDerivation with passAsFile
passAsFile passes the values of Nix bindings to the builder as
files, so if those values contained references, they wouldn't end up
in the inputDerivation output.  To fix that, append the contents of
every such passed file to the output.

We only have shell builtins in this derivation, so we can't use cat.
The only way I know of appending the contents of one file to another
using only shell builtins is as I've done here, but it requires
putting the contents of the file on echo's argv.  This might end up
causing problems with large files.  Regardless, I think we should try
this, as a failure is better than silently producing an incorrect
result like the previous behavior.
2023-05-09 14:00:57 +00:00
..
builder.sh
check-meta.nix stdenv: factor out meta attr augmentation for reusability 2023-05-01 20:18:11 +03:00
common-path.nix stdenv/common-path.nix: move to stdenv/generic/ 2022-07-29 18:24:00 -04:00
default-builder.sh stdenv: support opt-in __structuredAttrs 2022-12-08 06:13:19 +02:00
default.nix stdenv: sort defaultNativeBuildInputs alphabetically 2022-12-13 01:12:20 +02:00
make-derivation.nix stdenv: fix inputDerivation with passAsFile 2023-05-09 14:00:57 +00:00
setup.sh stdenv/generic/setup.sh: enable parallel installs by default 2023-02-26 22:02:09 +00:00