Nix + dotnet | 127 Members | |
| 24 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 May 2024 | ||
| Hello, I'm a relatively new nix user, and I've found myself with the rather ambitious 'first' project of trying to get a server I rely on packaged within nix, after the janky docker setup I was using to run it decided to break. Using the buildDotnetModule documentation and modelling after other dotnet packages in nixpkgs, I've managed to make some progress, but when I try to build the derivation, I get this for output:
I assume I'm missing something, but no amount of clever googling has gotten me answers as to what a solution would be, and I'm a bit too ignorant of both dotnet's build ecosystem and nix itself to figure it out myself. Hopefully that all came formatted correctly. | 20:56:06 | |
| Can produce the .nix file's text on request too, naturally. | 20:57:05 | |
| did you specify the right sdk? | 21:27:04 | |
keep in mind the package is dotnet-sdk not dotnet | 21:27:28 | |
| I hope so.
| 21:44:34 | |
| 2 May 2024 | ||
| Still working at this, even a day later. Assistance still welcome. | 20:49:09 | |
| 3 May 2024 | ||
| dotnetCorePackages? | 17:20:31 | |
| i usually just use pkgs.dotnet-sdk_8 | 17:21:05 | |
| 4 May 2024 | ||
| I can change to that and see what happens | 13:56:42 | |
| Throws the same error in the end, unfortunately | 14:02:36 | |
| Appreciate the suggestion, though, even if I'm a few hours late receiving it. | 14:06:06 | |
| 14 May 2024 | ||
| 02:20:55 | ||
| 22 May 2024 | ||
| 15:25:53 | ||
| 15:28:08 | ||
| 27 May 2024 | ||
| Hey; i've been trying to make a dev environment for jellyfin, and I can't seem to do so(for jellyfin or anything else).
I have tried to just copy the jellyfin derivation files in nixpkgs, only changing the source to be the current folder, and it seems to still be happening. Is there anything else I need to be doing to set this up? | 00:57:37 | |
| Running the fetch-deps attribute gets me this for all of the deps:
| 01:31:31 | |
I'm also unable to run dotnet restore --packages out if I'm in a devshell with dotnet for the same service index error. | 01:33:44 | |
| 30 May 2024 | ||
| I'm experiencing the same issue for other projects, seems to be a regression. | 11:33:54 | |
| * I'm experiencing the same issue for other projects, seems to be a regression. purepani | 11:34:24 | |
| * I'm experiencing the same issue in general, seems to be a regression. purepani | 11:34:37 | |
| https://github.com/dotnet/runtime/issues/102819 https://github.com/Azure/azure-sdk-for-net/issues/44300 | 12:45:40 | |
In reply to @daniel:nopemail.orgI see; so it's just caused by the new nixos name being unicode, and their tooling not supporting unicode. | 19:39:06 | |
| 31 May 2024 | ||
| What is the process for updating .NET modules, including their dependencies. | 06:17:59 | |
| * What is the process for updating .NET modules, including their dependencies? | 06:18:01 | |
* What is the process for updating .NET modules, including their dependencies? I tried setting passthru.updateScript = nix-update-script { };, which makes it possible to run nix-shell maintainers/scripts/update.nix --argstr package NAME, but nix-build --attr NAME.passthru.updateScript fails with "expression does not evaluate to a derivation". | 06:57:46 | |
* What is the process for updating .NET modules, including their dependencies? I tried setting passthru.updateScript = nix-update-script { };, which makes it possible to run nix-shell maintainers/scripts/update.nix --argstr package NAME, but nix-build --attr NAME.passthru.updateScript fails with "expression does not evaluate to a derivation". And any time I try to run $(nix-build --attr NAME.passthru.fetch-deps) it fails to access anything on the network with "error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.". | 06:58:42 | |
| 2 Jun 2024 | ||
In reply to @vengmark2:matrix.orgSee the posted above. Basically, the name for nixos 24.11 (Vicuña) contains a non-ascii character, and dotnet doesn't like that(in particular, the azure sdk) See this issue for a workaround: https://github.com/NixOS/nixpkgs/issues/315574 | 06:44:15 | |
| 3 Jun 2024 | ||
| what's the recommended way to make dotnet tools work? | 01:16:43 | |
| writing /etc/dotnet/install_location and setting DOTNET_ROOT appears to work but i dont think thats a good solution long term? | 01:17:19 | |
| and even then, it still requires to be run in an FHSEnv (eg. steam-run) | 01:18:03 | |