Nix + dotnet | 121 Members | |
| 24 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Mar 2025 | ||
| 03:19:07 | ||
| I've tried that before and it broke the build system severely so I can't do that | 08:48:15 | |
| upstream supports mono but I tried it and I couldn't get that to work either | 08:48:47 | |
| I think I'm gonna give up packaging OpenBVE for nixpkgs, I think they have a flatpak or something | 08:49:11 | |
| 23 Mar 2025 | ||
Hey gang, me again to cause more chaos. Do any of you have experience building a project that uses Nuke.Common for building part of the program? Something I use a lot, https://github.com/Thealexbarney/LibHac , uses it for some CodeGen that needs to be done for proper use of the program hactoolnet.I do have a derivation that pulls the official binary and patches that if I need to use it instead, but it would be nice to make sure that I have a properly working build that I can do if I need to. | 15:00:35 | |
| I do also have an existing derivation that skips using Nuke, but it seems to be quietly "broken" in a few ways since the programs expecting you to have done codegen initially. | 15:02:29 | |
| (You can see that at https://github.com/Whovian9369/whovian_nixos_config/blob/main/home/packages/hactoolnet/package.nix ) | 15:02:49 | |
| Oh I just noticed that Avalonia seems to deal with this already - https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/av/avalonia/package.nix#L151-L159 Is this the suggested way to deal with that, then? | 15:07:59 | |
| 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 | |