Nix + dotnet | 126 Members | |
| 24 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Aug 2023 | ||
In reply to @yarekt:matrix.orgmy thing? yes | 17:47:15 | |
git clone --recursive https://git.rory.gay/matrix/MatrixRoomUtils.git | 17:48:08 | |
build with nix build '.?submodules=1#web' -L | 17:48:26 | |
| though if you want i can set up a quick and dirty repro repo (just the template project with a flake) | 17:50:02 | |
| keep in mind that repo has the missing framework package manually added | 17:52:28 | |
In reply to @magikarpz:matrix.orgah i remember now why i cant use fetch-deps | 17:57:23 | |
error: getting status of '/home/root@Rory/EmptyBlazorWasmApp/default.nix': No such file or directorythat doesnt appear to work with flakes | 17:57:37 | |
building .#default.passthru.fetch-deps made a shellscript as result, i guess thats normal? | 19:31:50 | |
| oh, using that did include browser-wasm | 19:33:13 | |
| still fails to build though: | 19:35:29 | |
| Download EmptyBlazorWasmApp.tar.xz | 19:36:35 | |
| steps taken:
| 19:38:45 | |
| 15 Aug 2023 | ||
In reply to @emma:rory.gayas a workaround you can set useAppHost = false and selfContainedBuild = true in the buildDotnetModule callblazor wasm support is not ideal atm | 08:27:06 | |
In reply to @emma:rory.gayDeps generated are the same for me | 16:40:15 | |
| Ah but yes, I get the error. How strange. I will poke around more. | 16:45:53 | |
| 19:34:14 | ||
In reply to @emma:rory.gaythe fetch-deps script added one that was missing before with the nuget-to-nix script (Microsoft.NETCore.App.Runtime.Mono.browser-wasm) | 19:56:31 | |
| or at least, it did in our project, didnt check in the repro | 19:57:49 | |
| 16 Aug 2023 | ||
from what I searched, wasm-tools, needed by the blazor wasm compilation, is packages as a dotnet workload | 06:55:48 | |
| and unfortunately, workloads aren't supported in Nix for now - see https://github.com/NixOS/nixpkgs/issues/226107 | 06:56:10 | |
| so to make wasm compilation fully work you would need to try to hack together some form of workload support, I know that previously something was attempted for maui | 06:56:44 | |
| 19 Aug 2023 | ||
| shouldnt it be a matter of installing the relevant nuget packages? | 11:46:17 | |
| from what I understand workloads work a little bit differently and aren’t covered by the current nix mechanisms | 11:47:47 | |
| im guessing the dotnet packages also cant be extended to ship with the workloads builtin? | 11:50:54 | |
| there were attempts from what i remember, see the issue i linked above | 11:51:33 | |
| but properly implementing workloads in nix would require understanding how they are installed by the dotnet cli so that we can provide them using the standard nix functions | 11:52:14 | |
| at least going by https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/compilers/dotnet/versions/7.0.nix, there seems to be a packages array, couldnt the missing ones be added there? | 11:52:19 | |
| nope, this package array is used to streamline the package updating process | 11:53:07 | |
| it looks like theyre all just installed to /usr/share/dotnet/packs | 11:53:16 | |
| * it looks like theyre all just installed to /usr/share/dotnet/packs (arch) | 11:53:21 | |