!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

126 Members
24 Servers

Load older messages


SenderMessageTime
16 Aug 2023
@magikarpz:matrix.orgmdarocha from what I searched, wasm-tools, needed by the blazor wasm compilation, is packages as a dotnet workload 06:55:48
@magikarpz:matrix.orgmdarochaand unfortunately, workloads aren't supported in Nix for now - see https://github.com/NixOS/nixpkgs/issues/22610706:56:10
@magikarpz:matrix.orgmdarochaso 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 maui06:56:44
19 Aug 2023
@emma:rory.gayEmma [it/its]shouldnt it be a matter of installing the relevant nuget packages?11:46:17
@magikarpz:matrix.orgmdarochafrom what I understand workloads work a little bit differently and aren’t covered by the current nix mechanisms11:47:47
@emma:rory.gayEmma [it/its]im guessing the dotnet packages also cant be extended to ship with the workloads builtin?11:50:54
@magikarpz:matrix.orgmdarocha there were attempts from what i remember, see the issue i linked above 11:51:33
@magikarpz:matrix.orgmdarocha 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
@emma:rory.gayEmma [it/its] 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
@magikarpz:matrix.orgmdarochanope, this package array is used to streamline the package updating process11:53:07
@emma:rory.gayEmma [it/its]it looks like theyre all just installed to /usr/share/dotnet/packs11:53:16
@emma:rory.gayEmma [it/its]* it looks like theyre all just installed to /usr/share/dotnet/packs (arch)11:53:21
@magikarpz:matrix.orgmdarochaie those package are implicitly included with every does, and thanks to that we don’t have to regenerate all the deps.nix in the nixpkgs tree11:53:43
@magikarpz:matrix.orgmdarochaif you want to take a stab at implementing workloads then PRs are welcome :) I unfortunately didn’t have the time to take a look at that issue11:54:13
@emma:rory.gayEmma [it/its] both eg. Microsoft.AspNetCore.App.Ref and Microsoft.NETCore.App.Runtime.Mono.browser-wasm appear to be in in that same /usr/share/dotnet/packs directory 11:54:34
@magikarpz:matrix.orgmdarocha* ie those package are implicitly included with every deps, and thanks to that we don’t have to regenerate all the deps.nix in the nixpkgs tree11:54:41
@emma:rory.gayEmma [it/its]
In reply to @magikarpz:matrix.org
if you want to take a stab at implementing workloads then PRs are welcome :) I unfortunately didn’t have the time to take a look at that issue
i'd try but i have close to no experience with nix as a language, so i'd have no idea about actually implementing anything
11:55:45
@emma:rory.gayEmma [it/its] i'd be willing to test manually add all the workload packages into packages in 7.0.nix but i'd need to figure out how i'd even calculate all the sha256's 11:57:58
@magikarpz:matrix.orgmdarochayou can start by looking into dotnet’s update.sh script to see how they are generated11:58:35
@magikarpz:matrix.orgmdarocha but for workloads, I believe a better starting point will be the nix-maui rep referenced in the issue I linked 11:59:02
@emma:rory.gayEmma [it/its]well there the issue starts that i have no clue what i'm doing when it comes to nix11:59:34
@magikarpz:matrix.orgmdarochayeah, this unfortunately doesn’t seem like an easy issue for beginners :/12:00:03
@emma:rory.gayEmma [it/its] hence why i proposed to test if adding all workloads' packages into the packages array would work in a local nixpkgs checkout 12:00:41
@emma:rory.gayEmma [it/its]though, it looks like i could just add the package names in update.sh and the script would take care of the hashes?12:01:24
@magikarpz:matrix.orgmdarochayou can check it, sure, I’m not sure if it will work or not12:01:25
@magikarpz:matrix.orgmdarochayep, that’s how the lost in the nix files is generated12:01:40
@magikarpz:matrix.orgmdarocha* yep, that’s how the list in the nix files is generated12:01:47
@emma:rory.gayEmma [it/its]i wish i had the bandwidth to just clone the repo in full without --depth=112:03:30
@emma:rory.gayEmma [it/its]oh well12:03:35
@emma:rory.gayEmma [it/its]the nix maui flake does seem to have all of the workloads written down in nix12:12:52

Show newer messages


Back to Room ListRoom Version: 9