!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

126 Members
24 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
23 Mar 2025
@whovian9369:matrix.orgWhovian9369I 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
@whovian9369:matrix.orgWhovian9369(You can see that at https://github.com/Whovian9369/whovian_nixos_config/blob/main/home/packages/hactoolnet/package.nix )15:02:49
@whovian9369:matrix.orgWhovian9369Oh 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
@corngood:corngood.comCorngood 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
@whovian9369:matrix.orgWhovian9369That sounds like my next best attempt. Thanks!14:04:14
@corngood:corngood.comCorngood

Avalonia was a bit of a proof of concept for avoiding buildDotnetModule. addNuGetDeps is not well documented yet, so let me know if you have any trouble.

overrideFetchAttrs is there to allow fetch-deps to handle multiple target platforms (e.g. linux/darwin-x86/arm).

configurePhase should ideally do everything needed to get the nuget dependencies

buildPhase can call build.sh

linkNugetPackages and makeEmptyNupkgInPackages are hacks for things that don't handle NUGET_FALLBACK_PACKAGES properly or make other bad assumptions

14:13:04
@corngood:corngood.comCorngood *

Avalonia was a bit of a proof of concept for avoiding buildDotnetModule. addNuGetDeps is not well documented yet, so let me know if you have any trouble.

overrideFetchAttrs is there to allow fetch-deps to handle multiple target platforms (e.g. linux/darwin-x86/arm).

configurePhase should ideally do everything needed to get the nuget dependencies

buildPhase can call build.sh

linkNugetPackages and makeEmptyNupkgInPackages are hacks for things that don't handle NUGET_FALLBACK_PACKAGES properly or make other bad assumptions (use them only if necessary)

14:13:38
1 Apr 2025
@sandro:supersandro.deSandro 🐧 changed their display name from Sandro 🐧 to Sandro 🐧 [c3d2].13:56:06

Show newer messages


Back to Room ListRoom Version: 9