!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

99 Members
22 Servers

Load older messages


SenderMessageTime
6 May 2025
@corngood:corngood.comCorngoodBut are they statically or dynamically linked against the ssl shim?14:01:09
@gggkiller:matrix.orgGGGit should be static, since it's a self-contained binary14:01:34
@gggkiller:matrix.orgGGGit should only need the external deps, no runtime nor anything else14:01:42
@corngood:corngood.comCorngoodso AOT is always a single file?14:01:55
@gggkiller:matrix.orgGGGit has some auxliary files like the pdb and other native dlls (when nuget libraries use pinvoke), but I haven't seen AOT binaries with dlls14:02:40
@gggkiller:matrix.orgGGG* it has some auxliary files like the pdb and other native libraries (when nuget libraries use pinvoke), but I haven't seen AOT binaries with dlls14:02:46
@gggkiller:matrix.orgGGG

annoyingly, it seems like it doesn't add OpenSSL, ICU nor Kerberos to the needed section:

ggg@sora:~ » patchelf --print-needed /nix/store/q36hdx9n1svnxf8mg7pxjjhfz0arlicv-patchcil-0.2.2/lib/patchcil/patchcil                                                                                                                   1 ↵
libm.so.6
libc.so.6
ld-linux-x86-64.so.2                                                                                                                                                                                                                   /0.1s
ggg@sora:~ » patchelf --print-rpath /nix/store/q36hdx9n1svnxf8mg7pxjjhfz0arlicv-patchcil-0.2.2/lib/patchcil/patchcil 
$ORIGIN:/nix/store/vbrdc5wgzn0w1zdp10xd2favkjn5fk7y-glibc-2.40-66/lib                                                                                                                                                                  /0.1s
14:03:46
@gggkiller:matrix.orgGGG *

annoyingly, it seems like it doesn't add OpenSSL, ICU nor Kerberos to the needed section:

$ patchelf --print-needed /nix/store/q36hdx9n1svnxf8mg7pxjjhfz0arlicv-patchcil-0.2.2/lib/patchcil/patchcil
libm.so.6
libc.so.6
ld-linux-x86-64.so.2
$ patchelf --print-rpath /nix/store/q36hdx9n1svnxf8mg7pxjjhfz0arlicv-patchcil-0.2.2/lib/patchcil/patchcil 
$ORIGIN:/nix/store/vbrdc5wgzn0w1zdp10xd2favkjn5fk7y-glibc-2.40-66/lib
14:04:20
@corngood:corngood.comCorngood In case it helps you can get an AOT build (and various other things) like dotnet-sdk.tests.console.cs.aot.built or similar 14:07:26
@gggkiller:matrix.orgGGGoh nice14:07:41
@corngood:corngood.comCorngoodthere are tests for regular publish, single file, etc14:08:04
7 May 2025
@aerden:matrix.orgAerden joined the room.07:56:11
8 May 2025
@6pak:matrix.org6pak Corngood: shouldn't this set DYLD_LIBRARY_PATH on macos? https://github.com/NixOS/nixpkgs/blob/b8d4a65cb17eb3ddec8f742f424a6d195500f281/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh#L37 14:39:14
9 May 2025
@corngood:corngood.comCorngoodYeah, probably. Thanks for the PR. I think there are some subtle differences from glibc, but there are quite a few places in nixpkgs that use it as your suggesting.01:45:13
14 May 2025
@chipherseeker:matrix.orgcipherseeker joined the room.03:52:58
15 May 2025
@gggkiller:matrix.orgGGG @corngood:corngood.com maybe we'll finally be able to source build feature bands in .NET 10?
https://github.com/dotnet/announcements/issues/359
02:44:03
@corngood:corngood.comCorngoodInteresting, but a little vague. For the upgrades this month, 8 is done, 9 hit https://github.com/dotnet/dotnet/pull/546, and I haven't started 10 yet. I guess when I get to 10 I'll see whats going on...10:57:57
18 May 2025
@whovian9369:matrix.orgWhovian9369 Is there a suggested way to deal with an outdated global.json? Is it just to do something similar to substituteInPlace global.json --replace-fail 4.20.69 ${dotnetCorePackages.sdk_9_0.version}? 22:41:17
@whovian9369:matrix.orgWhovian9369("Outdated" relative to the SDK that I'm using to build, anyway.)22:41:36
@whovian9369:matrix.orgWhovian9369 Oh, maybe I could just change the allowPrerelease key to true? That may be the easiest solution here. 22:47:52
@6pak:matrix.org6pakwhat is your actual case?22:48:21
@6pak:matrix.org6pakis the global.json pinning a exactly specific version?22:48:32
@6pak:matrix.org6pakor just the major/feature band22:48:39
@whovian9369:matrix.orgWhovian9369Specific version22:48:49
@whovian9369:matrix.orgWhovian9369
$  PAGER= nix log .#git
warning: Git tree '/home/whovian/.flakes/aaru' is dirty
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/czn1ndgzbim47hr5yaqsaagns42854yp-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configureNuget
@nix { "action": "setPhase", "phase": "configureNuget" }
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.100
global.json file: /build/source/global.json

Installed SDKs:
9.0.203 [/nix/store/j7w50zcrv5rybkj23vqw062zry8gn1wx-dotnet-sdk-9.0.203/share/dotnet/sdk]

Install the [9.0.100] .NET SDK or update [/build/source/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
22:48:59
@6pak:matrix.org6pakI'd just rm the global.json22:49:32
@6pak:matrix.org6pakassuming the build still works on 9.0.2xx22:49:42
@whovian9369:matrix.orgWhovian9369 My flake is https://github.com/Whovian9369/aaru-nix-flake (Updating it which is why I'm encountering this)
Upstream is https://github.com/aaru-dps/Aaru
global.json was introduced with https://github.com/aaru-dps/Aaru/commit/8ee0926210df8e3a443456b567e17ad6f319125f
22:50:07
@6pak:matrix.org6pakthat global.json doesn't make much sense22:50:55
@6pak:matrix.org6pak it would be better to rollForward=latestPatch (aka 9.0.1xx instead) to still receive bug fixes while avoiding bumping the feature band 22:52:07

Show newer messages


Back to Room ListRoom Version: 9