markus1189 / dyalog-nixos

Run dyalog APL and RIDE on nixos
21 stars 5 forks source link

Fix .NET Bridge #12

Closed TomaSajt closed 1 year ago

TomaSajt commented 1 year ago

This PR reintroduces .NET support for Dyalog.

First, I replaced the supported .NET version from 3.1 to 6.0

https://forums.dyalog.com/viewtopic.php?f=22&t=1863

Using 2250⌶0 I found that dyalog couldn't find the Dyalog.Net.Bridge.dll shared library. I used LD_LIBRARY_PATH to patch that issue.

I also needed to set DOTNET_ROOT as the nix store is not the standard install directory.


Now 2250⌶0 no longer shows an error. After running ⎕USING←'System' I can run DateTime.Now and it prints the time correctly.

TomaSajt commented 1 year ago

Should I make a boolean flag in the package inputs to enable/disable .NET support? (Would be enabled by default)

MaxCan-Code commented 1 year ago

If the logic is simple then sure why not

Would be a nice toggle if the .NET files are relatively large in the final package

TomaSajt commented 1 year ago

This adds a bit more complexity to the script, but it's still manageable IMO.

markus1189 commented 1 year ago

Thanks!