anchor.diff:  
       # Install the helper scripts to bin/ to resemble the upstream package
       mkdir -p $out/bin
  -    install -m755 src/Misc/layoutbin/runsvc.sh        $out/bin/
  -    install -m755 src/Misc/layoutbin/RunnerService.js $out/lib/
  -    install -m755 src/Misc/layoutroot/run.sh          $out/lib/
  -    install -m755 src/Misc/layoutroot/config.sh       $out/lib/
  -    install -m755 src/Misc/layoutroot/env.sh          $out/lib/
  +    install -m755 src/Misc/layoutbin/runsvc.sh                 $out/bin/
  +    install -m755 src/Misc/layoutbin/RunnerService.js          $out/lib/
  +    install -m755 src/Misc/layoutroot/run.sh                   $out/lib/
  +    install -m755 src/Misc/layoutroot/run-helper.sh.template   $out/lib/run-helper.sh
  +    install -m755 src/Misc/layoutroot/config.sh                $out/lib/
  +    install -m755 src/Misc/layoutroot/env.sh                   $out/lib/
   
       # Rewrite reference in helper scripts from bin/ to lib/
  -    substituteInPlace $out/lib/run.sh    --replace '"$DIR"/bin' "$out/lib"
  -    substituteInPlace $out/lib/config.sh --replace './bin' "$out/lib"
  +    substituteInPlace $out/lib/run.sh    --replace '"$DIR"/bin' '"$DIR"/lib'
  +    substituteInPlace $out/lib/config.sh --replace './bin' $out'/lib' \
  +      --replace 'source ./env.sh' $out/bin/env.sh
  +
  +    # Remove uneeded copy for run-helper template
  +    substituteInPlace $out/lib/run.sh --replace 'cp -f "$DIR"/run-helper.sh.template "$DIR"/run-helper.sh' ' '
  +    substituteInPlace $out/lib/run-helper.sh --replace '"$DIR"/bin/' '"$DIR"/'
   
       # Make paths absolute
       substituteInPlace $out/bin/runsvc.sh \
  
positive.code:     wrap Runner.Listener
      wrap Runner.PluginHost
      wrap Runner.Worker
      wrap run.sh
      wrap env.sh
  
      wrap config.sh --prefix PATH : ${lib.makeBinPath [ glibc.bin ]}
    '';
  
    # Script to create deps.nix file for dotnet dependencies. Run it with
  
negative.code:     wrap() {
        makeWrapper $out/lib/$1 $out/bin/$1 \
          --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (buildInputs ++ [ openssl ])} \
          "''${@:2}"
      }
  
      fix_rpath Runner.Listener
  