powershell: fix darwin build (#123484)

authored by

Stéphan Kochen and committed by
GitHub
51eeb214 fbf1525f

+5 -1
+5 -1
pkgs/shells/powershell/default.nix
··· 38 38 rm -f $pslibs/libcrypto${ext}.1.0.0 39 39 rm -f $pslibs/libssl${ext}.1.0.0 40 40 41 + # At least the 7.1.3-osx package does not have the executable bit set. 42 + chmod a+x $pslibs/pwsh 43 + 41 44 ls $pslibs 42 45 '' + lib.optionalString (!stdenv.isDarwin) '' 43 46 patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so ··· 55 58 56 59 doInstallCheck = true; 57 60 installCheckPhase = '' 58 - $out/bin/pwsh --help > /dev/null 61 + # May need a writable home, seen on Darwin. 62 + HOME=$TMP $out/bin/pwsh --help > /dev/null 59 63 ''; 60 64 61 65 meta = with lib; {