diff options
author | Stéphan Kochen <git@stephank.nl> | 2021-05-18 16:36:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 10:36:25 -0400 |
commit | 51eeb21486c35d97ec1fb46ab69edc83b798bc2a (patch) | |
tree | 315aa8d5ab5ec02fc509a451d3c1cffc25c0f9ad /pkgs/shells/powershell | |
parent | fbf1525f0186aaaf7f7c84eee3ec35b9573e80f1 (diff) |
powershell: fix darwin build (#123484)
Diffstat (limited to 'pkgs/shells/powershell')
-rw-r--r-- | pkgs/shells/powershell/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/shells/powershell/default.nix b/pkgs/shells/powershell/default.nix index dfc4f94e12b67..cedf578d46abc 100644 --- a/pkgs/shells/powershell/default.nix +++ b/pkgs/shells/powershell/default.nix @@ -38,6 +38,9 @@ stdenv.mkDerivation rec { rm -f $pslibs/libcrypto${ext}.1.0.0 rm -f $pslibs/libssl${ext}.1.0.0 + # At least the 7.1.3-osx package does not have the executable bit set. + chmod a+x $pslibs/pwsh + ls $pslibs '' + lib.optionalString (!stdenv.isDarwin) '' patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so @@ -55,7 +58,8 @@ stdenv.mkDerivation rec { doInstallCheck = true; installCheckPhase = '' - $out/bin/pwsh --help > /dev/null + # May need a writable home, seen on Darwin. + HOME=$TMP $out/bin/pwsh --help > /dev/null ''; meta = with lib; { |