3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support
Daniel Fullmer 0a8007498f bash: use default PATH in FHS environments
If bash is executed within an environment where PATH is not set, it uses
the DEFAULT_PATH_VALUE compiled into bash to set PATH. In nixpkgs we set
this to /no-such-path by default. This makes sense in a nixpkgs/NixOS
environment since paths like /bin or /usr/bin should not be used.
However, when bash is used inside an FHS environment, this produces
results that differ from distributions which follow the FHS standard.

Before this change:
$ steam-run env -i /bin/bash -c 'echo $PATH'
/no-such-path

After this change:
$ steam-run env -i /bin/bash -c 'echo $PATH'
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
2022-02-27 15:59:39 -08:00
..
add-opengl-runpath
agda
alternatives lapack: include lapacke_utils.h in alternatives/lapack 2021-12-01 15:14:47 +08:00
appimage
bintools-wrapper Check link type based on expanded parameters 2022-01-01 20:30:56 +08:00
build-bazel-package buildBazelPackage: Pass --curses=no for terse logs 2021-12-04 23:36:40 +00:00
build-fhs-userenv bash: use default PATH in FHS environments 2022-02-27 15:59:39 -08:00
build-fhs-userenv-bubblewrap bash: use default PATH in FHS environments 2022-02-27 15:59:39 -08:00
build-graalvm-native-image buildGraalVmNativeImage: enable utf-8 by default 2022-01-04 09:56:34 +01:00
build-setupcfg
buildenv
cc-wrapper Check link type based on expanded parameters 2022-01-01 20:30:56 +08:00
coq coqPackages: tree-wide move packages to nativeBuildInputs and add strictDeps = true 2022-02-25 07:54:17 +01:00
dhall dhallDirectoryToNix: add this utility function 2021-12-07 13:36:21 +09:00
docker streamLayeredImage: pass through passthru attributes 2022-01-31 10:10:10 +03:00
dotnet buildDotnetModule: enable RestoreUseStaticGraphEvaluation 2022-02-12 02:15:13 +01:00
emacs melpa2nix: Ignore large file warnings 2021-12-19 08:07:18 -08:00
expand-response-params
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdocker
fetchfirefoxaddon
fetchfossil
fetchgit fetchgit: split off deterministic-git functions 2022-02-19 14:33:20 +01:00
fetchgitea
fetchgithub fetchFromGitHub: perserve originating position 2022-02-10 10:18:16 -08:00
fetchgitiles
fetchgitlab fetchgitlab: fix unexpected argument 2021-11-18 21:53:46 +03:00
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn misc: Replace tab indentation with spaces 2021-11-14 16:04:46 +13:00
fetchnextcloudapp
fetchpatch fetchpatch: Clean up 2022-02-02 12:15:47 +01:00
fetchrepoorcz
fetchrepoproject
fetchs3
fetchsavannah
fetchsourcehut fetchFromSourcehut: allow recursive fetching 2022-01-03 16:37:16 +07:00
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl fetchzip: remove need for overrideAttrs 2022-02-26 08:58:08 -08:00
fetchzip fetchzip: remove need for overrideAttrs 2022-02-26 08:58:08 -08:00
flutter flutter.mkFlutterApp: fix installing .desktop 2022-02-23 15:10:59 +01:00
go garble: 20200107 -> 0.5.1, switch to go_1_17 2022-01-30 07:42:46 +10:00
icon-conv-tools
install-shell-files
java
kernel make-initrd: fix reproducibility problems with hard links 2022-01-29 18:07:11 -05:00
libredirect Merge remote-tracking branch 'nixpkgs/staging-next' into staging 2022-01-24 15:39:34 +00:00
make-darwin-bundle build-support: make-darwin-bundle: new 2022-02-10 18:53:53 +00:00
make-desktopitem build-support/makeDesktopItem: make fully declarative, add all missing options 2022-02-25 13:40:38 -08:00
make-startupitem
make-symlinks
mkshell mkShell: make it buildable (#153194) 2022-01-08 01:54:04 +01:00
mono-dll-fixer mono-dll-fixer: remove builder.sh 2021-11-20 18:01:00 +01:00
nix-gitignore
node/fetch-yarn-deps fetchYarnDeps: support more url types 2021-12-30 11:13:25 +01:00
nuke-references
ocaml ocamlPackages tree-wide: Move buildInputs that should be nativeBuildInputs 2022-02-24 14:39:27 +01:00
oci-tools
pkg-config-wrapper pkg-config: make comment clearer for non-natives 2021-12-02 16:11:43 -08:00
prefer-remote-fetch
references-by-popularity
release
remove-references-to
replace-secret
rust rustPlatform.bindgenHook: init 2022-02-22 19:37:07 +01:00
setup-hooks Merge pull request #131891 from hexagonal-sun/darwin-app-creation 2022-02-11 09:26:32 +11:00
singularity-tools
skaware skawarePackages.buildPackage: reformat with nixpkgs-fmt 2022-01-15 22:06:56 +01:00
snap
src-only
substitute
substitute-files
templaterpm
trivial-builders nixos/nix-daemon: use structural settings 2022-01-26 21:04:50 -05:00
vm vmTools/test: fix pcmanfm instead of pan 2021-12-31 16:47:22 +01:00
wrapper-common
writers writers.PyPy{2,3}: init 2021-12-15 10:01:08 +01:00
build-maven.nix
build-pecl.nix
closure-info.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
test-equal-derivation.nix testEqualDerivation: init 2022-01-08 15:18:57 +01:00
trivial-builders.nix Merge branch 'staging-next' into staging 2022-01-10 01:26:05 +01:00