dotnet-script
A fatal error occurred. The required library libhostfxr.so could not be found.
If this is a self-contained application, that library should exist in [/home/b0ef/.dotnet/tools/.store/dotnet-script/1.3.1/dotnet-script/1.3.1/tools/net6.0/any/].
If this is a framework-dependent application, install the runtime in the global location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet].
The .NET runtime can be found at:
- https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=nixos.22.05-x64&apphost_version=6.0.5
This seems to be a known issue and listed here as resolved:
Oh, overread that you where still using channels. You can do that same thing with channels by adding a GitHub archive download link as as a new channel URL.
Checkout my dotfiles. You need dotnet.nix and dotnet-tool.nix from it. I packed dotnet-script for you, so you just need to add dotnet-script in the list of tools in dotnet.nix.
Note that my declarative global tool installation is super-experimental.