!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

126 Members
24 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@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
@6pak:matrix.org6pakI don't think npm even has a way to filter deps though?22:10:39
@gggkiller:matrix.orgGGGIt doesn't, and in .NET most projects don't bother to filter deps by runtime id either22:11:00
@gggkiller:matrix.orgGGGSo if we want that it's something we'd have to do manually or have said benefit for the small amount of projects that do22:11:28
@gggkiller:matrix.orgGGGI'm unsure how many savings that would actually bring us22:11:39
@6pak:matrix.org6pakevery project with an apphost does22:11:40
@gggkiller:matrix.orgGGGI mean, the packages with native libs do, but other than those, idk22:12:14
@6pak:matrix.org6pakseeing how cross compilation was completely broken until recently, no one cares tbf22:12:28
@6pak:matrix.org6pak my issue with buildDotnetModule is that you have things like packNupkg and selfContainedBuild top level and they apply to all projects 22:15:34
@6pak:matrix.org6pakso the model of a nix derivation and .net project seem disconnected22:15:50
@gggkiller:matrix.orgGGGHow would you suggest it work though22:16:17

Show newer messages


Back to Room ListRoom Version: 9