| 17 Dec 2024 |
Whovian9369 | runtimeId = "linux-x64"; should override that then, right? Or should I be doing it using like dotnetFlags = [ "-p:RuntimeIdentifiers=linux-x64" ] | 21:55:19 |
GGG | Latter | 21:55:31 |
6pak | I think nixpkgs dotnet stuff sets RuntimeIdentifier | 21:55:35 |
6pak | so if you empty out RuntimeIdentifiers, it will work like you want it to | 21:55:44 |
Whovian9369 | I'll have to try it out then, thanks! | 21:55:53 |
GGG | You'll probably want to use `dotnetCorePackages.systemToRuntimeId` to transform the `stdenv.targetSystem` into a RuntimeIdentifier | 21:56:42 |
6pak | hostSystem* | 21:57:06 |
GGG | In reply to @6pak:matrix.org I think nixpkgs dotnet stuff sets RuntimeIdentifier Does it? Lemme double check | 21:57:06 |
GGG | I already forgot | 21:57:12 |
6pak | but even then, just let builddotnetmodule fill it out | 21:57:23 |
Whovian9369 | (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 |  Download image.png | 21:58:11 |
6pak | but for the actual build, it only does sometimes... | 21:58:39 |
6pak |  Download image.png | 21:58:42 |
6pak | for some reason | 21:58:43 |
6pak | tbh I hate everything about buildDotnetModule | 21:58:58 |
6pak | it's just so wrong | 21:59:01 |
GGG | Oh yeah, I wonder if we should fill `RuntimeIdentifiers` based on the supported platforms in meta | 21:59:27 |
6pak | no | 21:59:35 |
6pak | you should fill it out based on hostPlatform | 21:59:43 |
6pak | * you should fill it out based on hostSystem | 21:59:46 |
GGG | That might solve a few issues | 21:59:48 |
GGG | Would have to evaluate the impact of doing that widespread though | 22:00:02 |
6pak | this is where the fact I had the convo with Corngood in dms backfires... | 22:00:14 |
GGG | 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 | it should have everything you currently want to build | 22:01:06 |
6pak | and in the nixpkgs model, you can only build one at a time | 22:01:11 |
GGG | Then the `--runtime` flag tells which one were building for | 22:01:12 |
GGG | 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 | afaik RuntimeIdentifiers only affects nuget restore | 22:01:48 |