anchor.diff:  
     dontStrip = true;
   
  -  meta = with stdenv.lib; {
  +  doInstallCheck = true;
  +  installCheck = ''
  +    $out/bin/pwsh --help > /dev/null
  +  '';
  +
  +  meta = with lib; {
       description = "Powerful cross-platform (Windows, Linux, and macOS) shell and scripting language based on .NET";
       homepage = "https://github.com/PowerShell/PowerShell";
       maintainers = with maintainers; [ yrashk srgom ];
  
positive.code: { stdenv, autoPatchelfHook, fetchzip, libunwind, libuuid, icu, curl
  , darwin, makeWrapper, less, openssl_1_1, pam, lttng-ust }:
  
  let platformString = if stdenv.isDarwin then "osx"
  
negative.code:   buildInputs = [ less ] ++ libraries;
    nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
  
    installPhase =
    let
      ext = stdenv.hostPlatform.extensions.sharedLibrary;
    in ''
      pslibs=$out/share/powershell
      mkdir -p $pslibs
  
      cp -r * $pslibs
  
      rm -f $pslibs/libcrypto${ext}.1.0.0
      rm -f $pslibs/libssl${ext}.1.0.0
  
      ls $pslibs
    '' + lib.optionalString (!stdenv.isDarwin) ''
      patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so
      patchelf --replace-needed libssl${ext}.1.0.0 libssl${ext}.1.1 $pslibs/libmi.so
    '' + ''
  
      mkdir -p $out/bin
  
      makeWrapper $pslibs/pwsh $out/bin/pwsh \
        --prefix ${platformLdLibraryPath} : "${stdenv.lib.makeLibraryPath libraries}" \
  