lol

stdenv: Prevent issues like #4266

Don't preserve hardlinks, and instead use reflinks if they're available.

authored by

Wout Mertens and committed by
Peter Simons
c04e4928 114a7752

+3 -1
+3 -1
pkgs/stdenv/generic/setup.sh
··· 463 if [ -d "$fn" ]; then 464 465 stripHash "$fn" 466 - cp -prd --no-preserve=timestamps "$fn" $strippedName 467 468 else 469
··· 463 if [ -d "$fn" ]; then 464 465 stripHash "$fn" 466 + # We can't preserve hardlinks because they may have been introduced by 467 + # store optimization, which might break things in the build 468 + cp -pr --reflink=auto --no-preserve=timestamps "$fn" $strippedName 469 470 else 471