nixpkgs/pkgs/stdenv
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
..
cross pkgsLLVM.stdenv: use clangNoLibc when libc is null 2023-04-28 10:01:22 +00:00
custom
cygwin
darwin stdenv: avoid -p flag for strip on aarch64-darwin 2023-04-24 10:33:11 +03:00
freebsd
generic stdenv: fix inputDerivation with passAsFile 2023-05-09 14:00:57 +00:00
linux bootstrap-tools-cross: add loongarch64-linux 2023-05-04 09:51:11 +03:00
native treewide: use lib.optionals 2023-02-14 19:11:59 +01:00
nix stdenv/common-path.nix: move to stdenv/generic/ 2022-07-29 18:24:00 -04:00
tests stdenv.tests: Add succeedOnFailure 2022-11-14 19:03:35 +01:00
adapters.nix stdenvAdapters: fix preservation of env.NIX_CFLAGS_COMPILE 2023-04-12 21:27:34 +03:00
booter.nix
default.nix stdenv: Simplify dispatch 2022-07-29 18:34:02 -04:00