nixpkgs/pkgs/stdenv/freebsd/always-patchelf.sh
Audrey Dutcher 1e2071847d stdenv/freebsd: reinit
The old stdenv didn't work, and was also impure. The new one works, and
is pure. Presently, the bootstrap tools are cross compiled into one small
nar and one large tar, which is then unpacked, patched, and split into
smaller derivations. Efforts were made to make the boot process as short
as possible - there are only two clangs built, and as many packages are
propagated between stages as possible while leaving the bootstrap tools
out of the final stdenv's closure.
2024-07-19 21:32:05 -07:00

5 lines
154 B
Bash

fixupOutputHooks+=(_FreeBSDPatchelfShrink)
_FreeBSDPatchelfShrink() {
find $prefix -type f | xargs -n1 patchelf --shrink-rpath &>/dev/null || true
}