!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

125 Members
23 Servers

Load older messages


SenderMessageTime
14 Dec 2024
@gggkiller:matrix.orgGGGDefinitely 01:58:53
@6pak:matrix.org6pakwhen you can just do it once in the nuget overrides01:58:54
@6pak:matrix.org6pakand by nuget overrides I mean https://github.com/NixOS/nixpkgs/blob/e0464e47880a69896f0fb1810f00e0de469f770a/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix#L5601:59:26
@gggkiller:matrix.orgGGGThough if we can use the avalonia being built in nixpkgs, then we wouldn't need to patchcil it01:59:27
@6pak:matrix.org6pakRedacted or Malformed Event01:59:30
@6pak:matrix.org6pak * and by nuget overrides I mean https://github.com/NixOS/nixpkgs/blob/e0464e47880a69896f0fb1810f00e0de469f770a/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix01:59:38
@6pak:matrix.org6pak * and by nuget overrides I mean https://github.com/NixOS/nixpkgs/blob/e0464e47880a69896f0fb1810f00e0de469f770a/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix, which I assume you know exists01:59:50
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
which I assume you know exists
Yeah, I do, I wanted to make it possible for people to provide their own overrides actually
01:59:59
@gggkiller:matrix.orgGGGThe way it is right now is kinda too carved in stone02:00:16
@gggkiller:matrix.orgGGGBut yeah, we could put it in the overrides for widely used packages, but adding some default excludes based on RID wouldn't harm anyone I think02:04:40
@gggkiller:matrix.orgGGGNext step now is making an `autoPatchcilHook` in nixpkgs, but I'm out of steam so I'll need a while before I continue on it02:05:16
@gggkiller:matrix.orgGGGIf you want to try your hand at doing anything, feel free to shoot a pr or something02:05:31
@6pak:matrix.org6pakleaving me with the bash dirty work smh02:06:34
@gggkiller:matrix.orgGGGoh no, definitely not02:07:11
@gggkiller:matrix.orgGGGI'm talking about the actual tool, you said you wanted to patch the assembly to add a ResolvingUnmanagedDll event listener02:07:37
@gggkiller:matrix.orgGGGI'm also considering adding an option to patch which runtime an assembly depends on, to make it able to run on newer runtimes02:08:54
@6pak:matrix.org6pak I'm not sure whether it's worth the extra complexity 02:11:35
@6pak:matrix.org6pakif a popular dependency like avalonia used dynamic loading then probably yes02:12:51
@6pak:matrix.org6pakso you can just patch it in one place and reuse everywhere02:13:08
@6pak:matrix.org6pak wdym? 02:14:09
@6pak:matrix.org6pakyou can just force roll forward with an env variable02:14:27
@gggkiller:matrix.orgGGGoh? I thought it needed a rebuild02:14:48
@6pak:matrix.org6pakand fixing the subtle breaking changes in the few programs that are actually affected can't really be done in automated fashion02:15:10
@gggkiller:matrix.orgGGGoh, I wasn't planning to fix anything02:15:24
@gggkiller:matrix.orgGGGjust change which runtime it wanted02:15:28
@gggkiller:matrix.orgGGGI didn't know (or forgot) about the roll forward env var02:15:38
@6pak:matrix.org6pak DOTNET_ROLL_FORWARD=LatestMajor 02:17:25
@6pak:matrix.org6pakhttps://learn.microsoft.com/en-us/dotnet/core/versions/selection#framework-dependent-apps-roll-forward02:17:32
@gggkiller:matrix.orgGGGoh huh02:17:55
@gggkiller:matrix.orgGGGeven the apphost accepts that CLI arg02:17:59

Show newer messages


Back to Room ListRoom Version: 9