!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

127 Members
24 Servers

Load older messages


SenderMessageTime
24 Dec 2024
@gggkiller:matrix.orgGGGthey will be doing it04:38:44
@gggkiller:matrix.orgGGGbut they haven't04:38:47
@corngood:corngood.comCorngood
In reply to @gggkiller:matrix.org
or are they just thrown away since they're only buildPackages and not runtimePackages?

They shouldn't be referenced in the outputs.

We don't even symlink libraries from packages at the moment.

13:21:21
25 Dec 2024
@genga898:matrix.orgEmmanuel GengaHow does fetch-deps work after running the result, is it supposed to replace the current nugetDeps file with a new one or does it output the code and you have to copy it?10:21:57
@corngood:corngood.comCorngood
In reply to @genga898:matrix.org
How does fetch-deps work after running the result, is it supposed to replace the current nugetDeps file with a new one or does it output the code and you have to copy it?
It's supposed to replace it
11:40:40
@genga898:matrix.orgEmmanuel Genga
In reply to @corngood:corngood.com
It's supposed to replace it
Ooh, I thought I had an issue but the package I'm trying to create depends on a release candidate version of avalonia so it keeps failing
11:43:31
@docbrown101:matrix.orgDaniel Hello! Does anyone here have a working nix shell configuration for dotnet 8? dotnet run works very easily with the definition of DOTNET_ROOT but when I have a built assembly and just want to start it, I always get an error that libhostfxr.so is not found! 20:24:32
@genga898:matrix.orgEmmanuel GengaWould it be ok to try and override the avalonia package or I may encounter more issues trying to do that?20:41:37
@gggkiller:matrix.orgGGG
In reply to @docbrown101:matrix.org
Hello! Does anyone here have a working nix shell configuration for dotnet 8? dotnet run works very easily with the definition of DOTNET_ROOT but when I have a built assembly and just want to start it, I always get an error that libhostfxr.so is not found!
I have these in my home manager config: https://github.com/GGG-KILLER/nixos-configs/blob/master/hosts%2Fsora%2Fusers%2Fggg%2Fdefault.nix#L175-L178
20:46:15
@6pak:matrix.org6pak the bottom two look cursed, why do you need those for? 20:47:13
@gggkiller:matrix.orgGGGNo idea, I got them a while ago from another config and never got around to checking if/why they're needed20:57:17
@gggkiller:matrix.orgGGGWas easy enough to keep around so I just did20:57:25
@6pak:matrix.org6paklooks like something that could break global.json sdk version selection logic20:58:10
@gggkiller:matrix.orgGGGI generally dislike `global.json` and get rid of it whenever I see it so it's fine to me21:13:47
26 Dec 2024
@10leej:matrix.orgnevoyu joined the room.01:41:20
@10leej:matrix.orgnevoyu left the room.01:42:03
@docbrown101:matrix.orgDanielThank you, but unfortunately that didn't help. I always get the standard error message: Could not start dynamically linked executable: ./Hygrometer.InfluxDB.Collector NixOS cannot run dynamically linked executables intended for generic linux environments out of the box. For more information, see: https://nix.dev/permalink/stub-ld10:48:09
1 Jan 2025
@whovian9369:matrix.orgWhovian9369

Hey gang, is there a suggested way to migrate a deps.nix via fetch-deps to the expectedJSON format?

This is mainly in reference to the header(?) comments from a deps.nix that I generated today!

# This file was automatically generated by passthru.fetch-deps.
# Please dont edit it manually, your changes might get overwritten!
# TODO: This format file is obsolete, consider migrating to JSON.
01:05:55
@gggkiller:matrix.orgGGG
In reply to @whovian9369:matrix.org

Hey gang, is there a suggested way to migrate a deps.nix via fetch-deps to the expectedJSON format?

This is mainly in reference to the header(?) comments from a deps.nix that I generated today!

# This file was automatically generated by passthru.fetch-deps.
# Please dont edit it manually, your changes might get overwritten!
# TODO: This format file is obsolete, consider migrating to JSON.
Use touch deps.json, change nugetDeps to point to that and then run fetch-deps
01:09:49
@whovian9369:matrix.orgWhovian9369 Ah, so fetch-deps is basically looking for a different extension? I'll do so soon then, thank you! 01:10:29
@gggkiller:matrix.orgGGGYeah, we changed it to generate JSON files because the new standard in nixpkgs is to not generate code for data01:10:55
@gggkiller:matrix.orgGGGIt still works with nix files, but it's mainly for compatibility sake01:11:10
@gggkiller:matrix.orgGGGAny other file extensions it generates JSON 01:11:24
@whovian9369:matrix.orgWhovian9369I liked being able to read the deps files as Nix because it's all the same ecosystem, but that makes perfect sense. Thanks!01:11:39
@gggkiller:matrix.orgGGGWell, the JSON file isn't *that* different 01:14:49
@gggkiller:matrix.orgGGGIt's just the arguments to `fetchNuGet`01:15:01
@whovian9369:matrix.orgWhovian9369Hah, fair02:08:47
@whovian9369:matrix.orgWhovian9369Now comes the painful part of changing all of my dotnet self-packages, haha02:13:24
@gggkiller:matrix.orgGGGThere's the script I wrote to do the treewide change in nixpkgs if you want: https://gist.github.com/GGG-KILLER/3a52e6244bbd14dd38e27f115e0ad2d602:22:12
@corngood:corngood.comCorngood
In reply to @whovian9369:matrix.org
Now comes the painful part of changing all of my dotnet self-packages, haha
It's not actually causing you any immediate problem, is it? deps.nix should still work, including with fetch-deps.
02:23:21

Show newer messages


Back to Room ListRoom Version: 9