| 14 Aug 2023 |
| Emma [it/its] joined the room. | 03:24:41 |
Emma [it/its] | Microsoft.NETCore.App.Runtime.Mono.browser-wasm seems to be missing from dotnet-sdk_7's packages, this is required to build a blazor wasm app, any solutions? | 03:32:53 |
Emma [it/its] | build fails as such:
MatrixRoomUtils.Web-v1> unpacking sources
MatrixRoomUtils.Web-v1> unpacking source archive /nix/store/ghrc75bpl7lkzjfyg7y5mw04i5bw7kvm-h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source
MatrixRoomUtils.Web-v1> source root is h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source
MatrixRoomUtils.Web-v1> patching sources
MatrixRoomUtils.Web-v1> updateAutotoolsGnuConfigScriptsPhase
MatrixRoomUtils.Web-v1> configuring
MatrixRoomUtils.Web-v1> Executing dotnetConfigureHook
MatrixRoomUtils.Web-v1> Cannot find a manifest file.
MatrixRoomUtils.Web-v1> For a list of locations searched, specify the "-d" option before the tool name.
MatrixRoomUtils.Web-v1> No tools were restored.
MatrixRoomUtils.Web-v1> Determining projects to restore...
MatrixRoomUtils.Web-v1> /build/h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source/MatrixRoomUtils.Web/MatrixRoomUtils.Web.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.browser-wasm. No packages exist with this id in source(s): nugetSource
MatrixRoomUtils.Web-v1> Failed to restore /build/h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source/MatrixRoomUtils.Web/MatrixRoomUtils.Web.csproj (in 1.12 sec).
MatrixRoomUtils.Web-v1> Restored /build/h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source/LibMatrix/LibMatrix/LibMatrix.csproj (in 538 ms).
error: builder for '/nix/store/mmjdifnfgrc3f4ragf8pql2fxsc73m1a-MatrixRoomUtils.Web-v1-1.drv' failed with exit code 1;
| 03:33:58 |
Emma [it/its] | * build fails as such:
...
MatrixRoomUtils.Web-v1> Determining projects to restore...
MatrixRoomUtils.Web-v1> /build/h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source/MatrixRoomUtils.Web/MatrixRoomUtils.Web.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.browser-wasm. No packages exist with this id in source(s): nugetSource
MatrixRoomUtils.Web-v1> Failed to restore /build/h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source/MatrixRoomUtils.Web/MatrixRoomUtils.Web.csproj (in 1.12 sec).
MatrixRoomUtils.Web-v1> Restored /build/h6sn3kw7ld0rilnv6gf49qs01zsnhg34-source/LibMatrix/LibMatrix/LibMatrix.csproj (in 538 ms).
error: builder for '/nix/store/mmjdifnfgrc3f4ragf8pql2fxsc73m1a-MatrixRoomUtils.Web-v1-1.drv' failed with exit code 1;
| 03:34:30 |
| Rover joined the room. | 03:38:42 |
raphi | In reply to @yarekt:matrix.org Just out of curiosity, is it possible to convert this addition to be system wide? using environment.sessionVariables sort of doesn't look right. I have to compile and run a bunch of different dotnet projects, this lib is needed a lot. Wouldn't mind having it available system wide, or I'll basically be stuck in a nix-shell all the time don't, i strongly advise you to use this in shellHooks only if you use that globally it will affect everything (and can possibly break anything). also other people won't be able to just run nix-shell and get a working development environment, since they won't have your global variable which goes against the reproducibility goals of nix | 07:12:43 |
Emma [it/its] | whats the best way to make a deps.nix? nuget-to-nix usually works but misses dependencies for awsm | 07:19:49 |
Emma [it/its] | * whats the best way to make a deps.nix? nuget-to-nix usually works but misses dependencies for wasm | 07:20:05 |
mdarocha | nuget-to-nix is mostly an internal tool used by the fetch-deps script | 07:41:35 |
mdarocha | follow the docs to get a buildDotnetModule derivation working, and then run the fetch-deps script from the derivation attributes, as shown in the docs | 07:42:51 |
Emma [it/its] | well i did follow the docs but i needed nuget-to-nix to generate the deps.nix | 07:45:24 |
mdarocha | fetch-deps runs nuget-to-nix internally | 07:45:59 |
mdarocha | what problem did you run into that you had to run nuget-to-nix? | 07:46:17 |
Emma [it/its] | my issue is that its missing a framework dependency | 07:46:22 |
Emma [it/its] | i dont remember, its been ages and i stuck with it | 07:46:39 |
mdarocha | are you trying to package a .net framework app? | 07:46:56 |
Emma [it/its] | no, im building a blazor wasm app | 07:47:11 |
mdarocha | oh yeah, the error you posted above right | 07:47:45 |
mdarocha | hmm seems like this package is restored differently internally | 07:47:58 |
Emma [it/its] | i had to explicitly add this line to deps.nix for my project to fix that error:
(fetchNuGet { pname = "Microsoft.NETCore.App.Runtime.Mono.browser-wasm"; version = "7.0.9"; sha256 = "PHY9n/4/MY3FdnsQWXr/UyByzSxStzcXt11Ys9reN8w="; }) | 07:48:01 |
mdarocha | and it’s not being picked up by nuget-to-nix | 07:48:14 |
mdarocha | yeah that should fix it for now | 07:48:23 |
Emma [it/its] | now im dealing with a NETSDK1084 (no app host available for specific RuntimeIdentifier) | 07:48:32 |
Emma [it/its] | In reply to @magikarpz:matrix.org and it’s not being picked up by nuget-to-nix because its a framework dep, not a project dep | 07:48:47 |
mdarocha | it’ll need to be fixed upstream in nixpkgs | 07:48:55 |
Emma [it/its] | i guess so, since it has a package type of DotnetPlatform | 07:49:23 |
mdarocha | that can also be because of a missing nuget | 07:49:42 |
mdarocha | most of the platform packages are bundled with the dotnet-sdk package in nixpkgs | 07:50:03 |
Emma [it/its] | yeah this one is just missing | 07:50:14 |
mdarocha | but i guess all the blazor stuff isn’t there, so it has to be added | 07:50:19 |