!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

127 Members
24 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@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
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
where in dotnet you tend to have multiple projects in solutions that have different kind of outputs
I don't see how this prevents us from having a single hostSystem really... Also, you gotta consider cross builds too
22:06:57
@gggkiller:matrix.orgGGG Maybe it's because I'm out of the loop on the conversation you had with @corngood:corngood.com but I think having per hostPlatform deps should work 22:08:16
@gggkiller:matrix.orgGGGWe just need to switch up how the JSON file is organized but sounds doable22:08:33
@6pak:matrix.org6pakI mean yes it would work but it's just so hacky22:09:08
@gggkiller:matrix.orgGGGIs it? I think other languages that don't compile to native should have pretty much the same scheme22:09:38
@gggkiller:matrix.orgGGGI know the npm folks have pretty much the same scheme, download deps for all targets22:09:53
@gggkiller:matrix.orgGGGThen they just don't use said dep if not on that target22:10:10
@gggkiller:matrix.orgGGGIdk how it's in java land, but should be similar22:10:31

Show newer messages


Back to Room ListRoom Version: 9