Allow buildInputs to be regular files

If a build input is a regular file, use it as a setup hook. This makes
setup hooks more efficient to create: you don't need a derivation that
copies them to $out/nix-support/setup-hook, instead you can use the
file as is.

+4
+4
pkgs/stdenv/generic/setup.sh
··· 198 198 199 199 eval $var="'${!var} $pkg '" 200 200 201 + if [ -f $pkg ]; then 202 + source $pkg 203 + fi 204 + 201 205 if [ -f $pkg/nix-support/setup-hook ]; then 202 206 source $pkg/nix-support/setup-hook 203 207 fi