mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Revert "Create wrapper directory outside of /bin/ for FHS chroots to be closer to FHS"
This reverts commit 9deb7f8aae
.
This commit is contained in:
parent
d812281674
commit
af4c369d0a
@ -97,9 +97,9 @@ filterExisting() {
|
||||
wrapProgram() {
|
||||
local prog="$1"
|
||||
local progBasename=$(basename $prog)
|
||||
local hiddenDir="$(dirname $prog)/../wrapped-bin/.$progBasename-wrapped-bin"
|
||||
mkdir -p $hiddenDir
|
||||
local hidden="$(cd "$hiddenDir"; pwd)/$progBasename"
|
||||
local hiddenDir=$(dirname $prog)/.$progBasename-wrapped-bin
|
||||
local hidden=$hiddenDir/$progBasename
|
||||
mkdir $hiddenDir
|
||||
mv $prog $hidden
|
||||
makeWrapper $hidden $prog "$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user