!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

128 Members
23 Servers

Load older messages


SenderMessageTime
17 Feb 2025
@dillonb:matrix.orgdgb joined the room.22:33:56
@dillonb:matrix.orgdgb hey everyone, I'm looking at making my first contribution to nixpkgs - what's the best practice for building multiple dotnet modules out of a single git repo? I'd like to add the bicep-langserver package from the same repo as this tool: https://github.com/nixos/nixpkgs/blob/master/pkgs/by-name/bi/bicep/package.nix 22:39:11
@corngood:corngood.comCorngoodI'd say it sort of depends on the structure of the repo and the build process. You could build them together in a single derivation, you could make the language server a separate derivation and inherit src/version, or keep them completely separate.23:23:41
@corngood:corngood.comCorngoodWe have `roslyn-ls`, which uses the main Roslyn repo but builds only the language server.23:25:37
@dillonb:matrix.orgdgbYeah, they're separate csproj files in the upstream repo. I didn't realize building multiple projects in the same derivation was an option. I think that makes the most sense. Thanks for the advice23:38:51
18 Feb 2025
@dillonb:matrix.orgdgbhttps://github.com/NixOS/nixpkgs/pull/382993 alright, well there it is01:51:52
24 Feb 2025
@phanirithvij:matrix.orgloudgolem joined the room.07:39:16
1 Mar 2025
@achnazoor:matrix.orgachnazoor left the room.12:44:17
3 Mar 2025
@thebus:matrix.orgJaco joined the room.13:21:53
5 Mar 2025
@sananatheskenana:matrix.orglzcunt joined the room.21:17:37
@sananatheskenana:matrix.orglzcunt Heyy, packaging a dotnet app. It seems to run nuget restore instead of dotnet restore in its makefile, and seemingly fetch-deps doesn't do that 21:18:09
@sananatheskenana:matrix.orglzcuntI have no idea why those two commands are any different, I am not really a dotnet person. Testing manually, it seems dotnet restore fails to find anything to restore at all. What should I do?21:18:19
@6pak:matrix.org6pak nuget would likely call the legacy mono/netfx nuget client 21:20:34
@6pak:matrix.org6pakwhile nixpkgs only really supports the modern dotnet sdk21:20:43
@sananatheskenana:matrix.orglzcuntAh, is there a way to get the solution to restore with dotnet instead?21:21:14
@6pak:matrix.org6pakwhat app is it?21:21:24
@sananatheskenana:matrix.orglzcuntOpenBVE21:21:28
@sananatheskenana:matrix.orglzcunttrain simulator :321:21:35
@6pak:matrix.org6pak"makefile" sounds like it does some custom build logic21:21:44
@sananatheskenana:matrix.orglzcuntit barely does any logic21:21:52
@sananatheskenana:matrix.orglzcuntit's checking for dependencies then just calling nuget and msbuild21:22:06
@6pak:matrix.org6pak it uses the legacy project format and packages.config, but it should still work with modern dotnet sdk 21:22:43
@6pak:matrix.org6pak just try doing dotnet restore/dotnet build 21:22:53
@sananatheskenana:matrix.orglzcuntthey say to build with mono but idk the difference between dotnet core and mono21:23:08
@sananatheskenana:matrix.orglzcunt

Determining projects to restore...
Nothing to do. None of the projects specified contain packages to restore.

21:23:44
@6pak:matrix.org6pakmono has been abandoned for years21:23:48
@sananatheskenana:matrix.orglzcunt *

Determining projects to restore...
Nothing to do. None of the projects specified contain packages to restore.

21:23:53
@6pak:matrix.org6pakever since dotnet was open sourced21:23:55
@sananatheskenana:matrix.orglzcuntthis is with dotnet restore21:24:08
@6pak:matrix.org6pak* mono has been (effectively) abandoned for years21:24:13

Show newer messages


Back to Room ListRoom Version: 9