perlPackages.Filelchown: fix build on Darwin

This commit is contained in:
Zak B. Elep 2021-08-25 20:06:04 +08:00
parent 6c3207cd62
commit edca4b029f

View File

@ -8081,7 +8081,7 @@ let
sha256 = "a02fbf285406a8a4d9399284f032f2d55c56975154c2e1674bd109837b8096ec";
};
buildInputs = [ ExtUtilsCChecker ];
perlPreHook = lib.optionalString stdenv.isi686 "export LD=$CC"; # fix undefined reference to `__stack_chk_fail_local'
perlPreHook = lib.optionalString (stdenv.isi686 || stdenv.isDarwin) "export LD=$CC"; # fix undefined reference to `__stack_chk_fail_local'
meta = {
description = "Modify attributes of symlinks without dereferencing them";
license = with lib.licenses; [ artistic1 gpl1Plus ];