!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

118 Members
23 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@whovian9369:matrix.orgWhovian9369 runtimeId = "linux-x64"; should override that then, right? Or should I be doing it using like dotnetFlags = [ "-p:RuntimeIdentifiers=linux-x64" ] 21:55:19
@gggkiller:matrix.orgGGGLatter21:55:31
@6pak:matrix.org6pak I think nixpkgs dotnet stuff sets RuntimeIdentifier 21:55:35
@6pak:matrix.org6pak so if you empty out RuntimeIdentifiers, it will work like you want it to 21:55:44
@whovian9369:matrix.orgWhovian9369I'll have to try it out then, thanks!21:55:53
@gggkiller:matrix.orgGGGYou'll probably want to use `dotnetCorePackages.systemToRuntimeId` to transform the `stdenv.targetSystem` into a RuntimeIdentifier21:56:42
@6pak:matrix.org6pakhostSystem*21:57:06
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
I think nixpkgs dotnet stuff sets RuntimeIdentifier
Does it? Lemme double check
21:57:06
@gggkiller:matrix.orgGGGI already forgot21:57:12
@6pak:matrix.org6pakbut even then, just let builddotnetmodule fill it out21:57:23
@whovian9369:matrix.orgWhovian9369 (Also I have dotnetBuildFlags and dotnetInstallFlags set separately since I remember having issues via dotnetFlags -- Something relating to the restore phase, if memory serves? I'll have to try that again later.) 21:57:50
@6pak:matrix.org6pakimage.png
Download image.png
21:58:11
@6pak:matrix.org6pakbut for the actual build, it only does sometimes...21:58:39
@6pak:matrix.org6pakimage.png
Download image.png
21:58:42
@6pak:matrix.org6pakfor some reason21:58:43
@6pak:matrix.org6pak tbh I hate everything about buildDotnetModule 21:58:58
@6pak:matrix.org6pakit's just so wrong21:59:01
@gggkiller:matrix.orgGGGOh yeah, I wonder if we should fill `RuntimeIdentifiers` based on the supported platforms in meta21:59:27
@6pak:matrix.org6pakno21:59:35
@6pak:matrix.org6pakyou should fill it out based on hostPlatform21:59:43
@6pak:matrix.org6pak * you should fill it out based on hostSystem21:59:46
@gggkiller:matrix.orgGGGThat might solve a few issues21:59:48
@gggkiller:matrix.orgGGGWould have to evaluate the impact of doing that widespread though22:00:02
@6pak:matrix.org6pak this is where the fact I had the convo with Corngood in dms backfires... 22:00:14
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
you should fill it out based on hostSystem
No, the RuntimeIdentifiers should have all supported platforms, no?
22:00:45
@6pak:matrix.org6pakit should have everything you currently want to build22:01:06
@6pak:matrix.org6pakand in the nixpkgs model, you can only build one at a time22:01:11
@gggkiller:matrix.orgGGGThen the `--runtime` flag tells which one were building for22:01:12
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
it should have everything you currently want to build
But if we only set it to one, then it'll screw over the restore process and fetch-deps
22:01:47
@6pak:matrix.org6pak afaik RuntimeIdentifiers only affects nuget restore 22:01:48

Show newer messages


Back to Room ListRoom Version: 9