Nix + dotnet | 121 Members | |
| 24 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Aug 2023 | ||
| but i guess all the blazor stuff isn’t there, so it has to be added | 07:50:19 | |
| Hmm, with dotnet you usually specify all the dependencies in its <foo>.csproj file, and they get pulled down in a restore step. Does Nix replace that somehow? | 16:39:14 | |
| I suppose it wants to if it needs reproducible builds | 16:39:25 | |
Oh, are you using dotnetCorePackages.sdk_7_0 or pkgs.dotnet-sdk_7 ? because the former doesn't package aspnetcore even though it says it should | 16:41:49 | |
| Oh wait, isn't mono like completely gone from dotnet these days? Hmm. Is this thing open source? Do you have something I can replicate on my machine? | 16:46:26 | |
| dotnet-sdk_7 is an alias to dotnetcorePackages.sdk_7_0, so I don't know how you can encounter differences between the two | 16:51:04 | |
| they both point to a packaged sdk, which should contain the aspnetcore framework files | 16:51:23 | |
In reply to @yarekt:matrix.orgin case of Nix, it runs dotnet restore and then builds a deps.nix based on the restored nugets. This doesnt always work, cause sometimes (ie. in case of alternative sdk packages) not all nugets are pulled at restore | 16:52:24 | |
| but most framework and SDK stuff is included by default when using buildDotnetModule, so it isn't usually a problem | 16:52:53 | |
| the error like with blazor is mostly probably due to missing stuff in the dependencies included by default, which aren't also properly picked up into deps.nix | 16:53:40 | |
| unless there's some other problems, it would also help with debugging to share a repo with a reproduction of the problems | 16:54:19 | |
| * unless there's some other problems, it would also help with debugging to share a repo with a reproduction of the errors | 16:54:24 | |
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 | |