mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
cygwin: rebase fixes
- use fixupOutputsHook to find libs in all outputs - don't rebase symlinks
This commit is contained in:
parent
3584707638
commit
cdc5cf52c1
|
@ -1,10 +1,10 @@
|
|||
postFixupHooks+=(_cygwinFixAutoImageBase)
|
||||
fixupOutputHooks+=(_cygwinFixAutoImageBase)
|
||||
|
||||
_cygwinFixAutoImageBase() {
|
||||
if [ "$dontRebase" == 1 ]; then
|
||||
if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
|
||||
return
|
||||
fi
|
||||
find $out -name "*.dll" | while read DLL; do
|
||||
find "$prefix" -name "*.dll" -type f | while read DLL; do
|
||||
if [ -f /etc/rebasenix.nextbase ]; then
|
||||
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
||||
fi
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
postFixupHooks+=(_cygwinFixAutoImageBase)
|
||||
fixupOutputHooks+=(_cygwinFixAutoImageBase)
|
||||
|
||||
_cygwinFixAutoImageBase() {
|
||||
if [ "$dontRebase" == 1 ]; then
|
||||
if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
|
||||
return
|
||||
fi
|
||||
find $out -name "*.dll" | while read DLL; do
|
||||
find "$prefix" -name "*.dll" -type f | while read DLL; do
|
||||
if [ -f /etc/rebasenix.nextbase ]; then
|
||||
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue