@@ -38,6 +38,9 @@ stdenv.mkDerivation rec {
3838 rm -f $pslibs/libcrypto${ext}.1.0.0
3939 rm -f $pslibs/libssl${ext}.1.0.0
4040
41+ # At least the 7.1.3-osx package does not have the executable bit set.
42+ chmod a+x $pslibs/pwsh
43+
4144 ls $pslibs
4245 '' + lib.optionalString (!stdenv.isDarwin) ''
4346 patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so
@@ -55,7 +58,8 @@ stdenv.mkDerivation rec {
5558
5659 doInstallCheck = true;
5760 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
5963 '';
6064
6165 meta = with lib; {