!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

128 Members
24 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@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
@gggkiller:matrix.orgGGGYeah22:01:55
@6pak:matrix.org6pakand it doesn't make sense to download stuff you don't need to build what you want22:01:56
@6pak:matrix.org6pak because it's wrong imo 22:02:18
@gggkiller:matrix.orgGGGWhich is why I was thinking of setting it based on the `meta.supportedPlatforms`22:02:24
@gggkiller:matrix.orgGGGThat way it'd only restore for the platforms it supports 22:02:37
@6pak:matrix.org6pak fetch-deps output should be specific for the platform 22:02:39
@gggkiller:matrix.orgGGGNo, I disagree with that22:02:51
@6pak:matrix.org6pakbecause you shouldn't need to download unfree windows deps if you build a linux app22:02:57
@6pak:matrix.org6pakjust because it supports windows target22:03:01
@gggkiller:matrix.orgGGGSure, we can have per platform dependencies in the file 22:03:05
@gggkiller:matrix.orgGGGBut the file should have dependencies for all platforms22:03:15
@6pak:matrix.org6paksure it can be in one file whatever22:03:20
@gggkiller:matrix.orgGGGOtherwise it'd be hell generating the `deps.json` file22:03:28
@6pak:matrix.org6pakit shouldn't pull in dependencies for other platforms22:03:30
@gggkiller:matrix.orgGGGSounds doable 22:04:03
@6pak:matrix.org6pak my issue with buildDotnetModule is that it doesn't really work well with nixpkgs model 22:04:52
@gggkiller:matrix.orgGGGHow so?22:05:00
@6pak:matrix.org6pakwhere every derivation has one hostSystem22:05:02
@6pak:matrix.org6pakwhere in dotnet you tend to have multiple projects in solutions that have different kind of outputs22:05:24
@6pak:matrix.org6pakand you can't really break up projectreferences into derivations easily22:05:32
@gggkiller:matrix.orgGGGIt'd also make it quite a pain to package anything22:05:56
@gggkiller:matrix.orgGGGIf you had to make a derivation for every single csproj22:06:14

Show newer messages


Back to Room ListRoom Version: 9