Unverified Commit 1eae57a7 authored by helpimnotdrowning's avatar helpimnotdrowning
Browse files

powershell: fix crash on `sudo pwsh` while within PowerShell

fix NixOS/nixpkgs#510681
parent def188bb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -74,11 +74,12 @@ stdenv.mkDerivation rec {
    mkdir -p $out/{bin,share/powershell}
    cp -R * $out/share/powershell
    chmod +x $out/share/powershell/pwsh
    makeWrapper $out/share/powershell/pwsh $out/bin/pwsh \
    wrapProgram $out/share/powershell/pwsh \
      --prefix ${platformLdLibraryPath} : "${lib.makeLibraryPath buildInputs}" \
      --set TERM xterm \
      --set POWERSHELL_TELEMETRY_OPTOUT 1 \
      --set DOTNET_CLI_TELEMETRY_OPTOUT 1
    cp $out/share/powershell/pwsh $out/bin/pwsh

  ''
  + lib.optionalString stdenv.hostPlatform.isLinux ''