!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

121 Members
24 Servers

Load older messages


SenderMessageTime
13 Aug 2023
@yarekt:matrix.orgYarek T * 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 20:25:50
14 Aug 2023
@emma:rory.gayEmma [it/its] joined the room.03:24:41
@emma:rory.gayEmma [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:rory.gayEmma [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:rory.gayEmma [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:aguiarvieira.ptRover joined the room.03:38:42
@raphi:tapesoftware.netraphi
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:rory.gayEmma [it/its]whats the best way to make a deps.nix? nuget-to-nix usually works but misses dependencies for awsm07:19:49
@emma:rory.gayEmma [it/its]* whats the best way to make a deps.nix? nuget-to-nix usually works but misses dependencies for wasm07:20:05
@magikarpz:matrix.orgmdarochanuget-to-nix is mostly an internal tool used by the fetch-deps script07:41:35
@magikarpz:matrix.orgmdarochafollow the docs to get a buildDotnetModule derivation working, and then run the fetch-deps script from the derivation attributes, as shown in the docs07:42:51
@emma:rory.gayEmma [it/its]well i did follow the docs but i needed nuget-to-nix to generate the deps.nix07:45:24
@magikarpz:matrix.orgmdarochafetch-deps runs nuget-to-nix internally07:45:59
@magikarpz:matrix.orgmdarochawhat problem did you run into that you had to run nuget-to-nix?07:46:17
@emma:rory.gayEmma [it/its]my issue is that its missing a framework dependency07:46:22
@emma:rory.gayEmma [it/its]i dont remember, its been ages and i stuck with it07:46:39
@magikarpz:matrix.orgmdarochaare you trying to package a .net framework app?07:46:56
@emma:rory.gayEmma [it/its]no, im building a blazor wasm app07:47:11
@magikarpz:matrix.orgmdarocha oh yeah, the error you posted above right 07:47:45
@magikarpz:matrix.orgmdarochahmm seems like this package is restored differently internally07:47:58
@emma:rory.gayEmma [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
@magikarpz:matrix.orgmdarochaand it’s not being picked up by nuget-to-nix07:48:14
@magikarpz:matrix.orgmdarochayeah that should fix it for now07:48:23
@emma:rory.gayEmma [it/its]now im dealing with a NETSDK1084 (no app host available for specific RuntimeIdentifier)07:48:32
@emma:rory.gayEmma [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
@magikarpz:matrix.orgmdarochait’ll need to be fixed upstream in nixpkgs07:48:55
@emma:rory.gayEmma [it/its]i guess so, since it has a package type of DotnetPlatform07:49:23
@magikarpz:matrix.orgmdarocha that can also be because of a missing nuget 07:49:42
@magikarpz:matrix.orgmdarochamost of the platform packages are bundled with the dotnet-sdk package in nixpkgs07:50:03
@emma:rory.gayEmma [it/its]yeah this one is just missing07:50:14

Show newer messages


Back to Room ListRoom Version: 9