Nix + dotnet | 121 Members | |
| 24 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Mar 2025 | ||
Whovian9369: Avalonia doesn't use buildDotnetModule. It just uses the dotnet-sdk hooks and addNuGetDeps directly. You could certainly try to do something similar. | 12:39:33 | |
| That sounds like my next best attempt. Thanks! | 14:04:14 | |
| Avalonia was a bit of a proof of concept for avoiding
| 14:13:04 | |
| * Avalonia was a bit of a proof of concept for avoiding
| 14:13:38 | |
| 1 Apr 2025 | ||
| 13:56:06 | ||
| 13:56:50 | ||
| 13:57:23 | ||
| 13:58:37 | ||
| 3 Apr 2025 | ||
| 19:48:31 | ||
| 7 Apr 2025 | ||
| 18:11:00 | ||
| 10 Apr 2025 | ||
| 14:47:27 | ||
| can somebody with commit permissions take a look at this PR? https://github.com/NixOS/nixpkgs/pull/257489 I'd really want to get going on removing the deprecated | 20:54:02 | |
| the right room for that is #review-requests:nixos.org | 22:51:51 | |
| 19 Apr 2025 | ||
| 02:47:34 | ||
| Could someone please help me figure out how to get the dotnet sdk to work on NixOS? Neither wiki has any usable information on getting this setup, so I've basically just guessed at which packages I found when searching for 'dotnet' on search.nixos.org were the correct ones. The names of these seemed the most correct to me and thats all I picked based on, so if these aren't right please let me know I have the following in my configuration.nix (removed the unrelated parts):
I've added the dotnet-sdk_9 dotnet root since the wiki said thats what to do if its not found, but that doesn't seem to have any effect. Its still not able to access the sdk unless I cd to that dir and use the filesystem local dotnet instead of the system one:
| 03:14:52 | |
| * Could someone please help me figure out how to get the dotnet sdk to work on NixOS? Neither wiki has any usable information on getting this setup, seems to assume you're trying to build a dotnet nix package instead of actually use dotnet on your system. So I've basically just guessed at which packages I found when searching for 'dotnet' on search.nixos.org were the correct ones. The names of these seemed the most correct to me and thats all I picked based on, so if these aren't right please let me know I have the following in my configuration.nix (removed the unrelated parts):
I've added the dotnet-sdk_9 dotnet root since the wiki said thats what to do if its not found, but that doesn't seem to have any effect. Its still not able to access the sdk unless I cd to that dir and use the filesystem local dotnet instead of the system one:
| 03:22:11 | |
| Ah finally got it figured out, changing the packages to the following fixed it
| 07:38:26 | |
| you actually need to have the SDK and no runtimes | 08:10:20 | |
| corruptcomputer: ``` systemPackages = with pkgs; [
| 08:13:21 | |
*
| 08:13:27 | |
*
this is what I do in my config: https://github.com/GGG-KILLER/nixos-configs/blob/3553a0247d667bd3d83937e52d63625ba592c1c5/hosts/sora/system/programs/default.nix#L10-L18 | 08:14:02 | |
*
this is what I do in my config: https://github.com/GGG-KILLER/nixos-configs/blob/3553a0247d667bd3d83937e52d63625ba592c1c5/hosts/sora/system/programs/default.nix#L10-L18 | 08:14:11 | |
| 17:01:44 | ||
| 21 Apr 2025 | ||
| Is that the most up to date way to do it? I saw this on the Wiki from about a week ago and this is what I had based my change on: https://discourse.nixos.org/t/dotnet-maui-workload/20370/24 There really isn't a ton of documentation around dotnet so I'm really not sure what the best way to do it is, and according to other folks on this same forum discussion for it isn't possible to update? Not really sure how thats the case when its a wiki | 22:54:43 | |
| * Is that the most up to date way to do it? I saw this on the forum from about a week ago and this is what I had based my change on: https://discourse.nixos.org/t/dotnet-maui-workload/20370/24 There really isn't a ton of documentation around dotnet so I'm really not sure what the best way to do it is, and according to other folks on this same forum discussion for it isn't possible to update? Not really sure how thats the case when its a wiki | 22:54:52 | |
it is the way I use myself. I prefer using a file in /etc because env vars require restarting your window manager or something similar to update them | 22:55:18 | |
but you shouldn't mix sdk_X_Y, runtime_X_Y, aspnetcore_X_Y packages ever | 22:55:38 | |
| you pick one of the three and use that for that version | 22:55:48 | |
* it is the way I use myself. I prefer using a file in /etc because env vars require restarting your desktop manager or something similar to update them | 22:55:57 | |
| I need all 3 of them though, I'm developing aspnetcore and desktop applications, so I need to be able to both compile with the sdk and run with the runtime or aspnetcore runtime | 22:56:40 | |