make-symlinks-relative: fix no such file or directory if output is created in postFixup

wlroots(and others) have
```
wlroots> +++ find /nix/store/3a0xwszw8n5dzzhsgfnilvsqi4hk565s-wlroots-0.15.1-examples -type l -print0
wlroots> find: '/nix/store/3a0xwszw8n5dzzhsgfnilvsqi4hk565s-wlroots-0.15.1-examples': No such file or directory
```

because the examples output is created in postFixup while this hook runs in fixupPhase
This commit is contained in:
Artturin 2022-12-06 00:05:28 +02:00
parent c96b7c6974
commit 6c01681679

View file

@ -1,4 +1,4 @@
fixupOutputHooks+=(_makeSymlinksRelative)
postFixupHooks+=(_makeSymlinksRelative)
# For every symlink in $output that refers to another file in $output
# ensure that the symlink is relative. This removes references to the output