Yang, Bo

Results 342 comments of Yang, Bo

nix-ld-rs behaves differently On Thu, Nov 9, 2023 at 2:37 AM Sandro ***@***.***> wrote: > I really do not want to enable nix-ld as it changes LD_LIBRARY_PATH for > everything...

I would try `nix-ld-rs` + `server-env-setup` approach. I created some NixOS modules in that approach here: https://github.com/Atry/nixos-wsl-vscode

The workaround for using nix-ld with vscode server is to change `remote.WSL2.connectionMethod` setting. I added approach the to the wiki page https://nixos.wiki/wiki/Visual_Studio_Code#:~:text=should%20%22just%20work%22.-,Remote%20WSL,-Similar%20to%20SSH Overall speaking, `nix-ld` is a more general approach...

Updating to `nixos-22.11` is better than #548, because it produces some error messages at least

@DavHau , do you have any idea about it?

I added `setuptools` to `distlib` in order to fix error `ModuleNotFoundError: No module named 'setuptools'`, however, it seems the test stuck because of the fix: https://github.com/DavHau/mach-nix/actions/runs/4539990576/jobs/8000410559?pr=548 @DavHau , do you...

I think the timeout is due to upgrading nixpkgs, not because of adding `setuptools`. I split the `setuptools` part of this PR into #551, which passes CI.

How do you think about `merge_scan`, like https://rxjs.dev/api/index/function/mergeScan ? I think `merge_scan` is useful to be used as a general producer/consumer operator. Would you like to review a `merge_scan_with_backpressure` PR?

The following workaround can suppress the error. ```nix packages = [ pkgs.stdenv.cc.cc.lib ] ``` However, Ubuntu native executables, e.g. `/usr/bin/git`, do not work with this workaround. It also breaks NixOS...