!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

121 Members
24 Servers

Load older messages


SenderMessageTime
14 Jan 2025
@wiiplayer2:matrix.orgWaldemar Tomme or more like: I assumed it would be possible to just do it with buildDotnetModule 14:32:09
@emma:rory.gayEmma [it/its]huh... thats odd14:33:14
@emma:rory.gayEmma [it/its]bins should be on PATH... i use runtimeDeps for yt-dlp (and transitively, ffmpeg) in a project14:34:01
@emma:rory.gayEmma [it/its] seems is misunderstood what runtimeDeps does 14:36:29
@wiiplayer2:matrix.orgWaldemar Tomme in the source of buildDotnetModule runtimeDeps is only used to get libraries (https://github.com/NixOS/nixpkgs/blob/635e887b48521e912a516625eee7df6cf0eba9c1/pkgs/build-support/dotnet/build-dotnet-module/default.nix#L124) 14:36:36
@wiiplayer2:matrix.orgWaldemar TommeIn the manual it also says that it's only for libraries14:37:04
@wiiplayer2:matrix.orgWaldemar Tommeguess I will make a wrapper14:37:14
@gggkiller:matrix.orgGGGYou can use `makeWrapperArgs` to add stuff to path14:38:12
@gggkiller:matrix.orgGGG`buildDotnetModule` already makes a wrapper, so don't make a wrapper out of a wrapper14:50:18
@wiiplayer2:matrix.orgWaldemar Tomme

It works now. thanks ^^
but small question for clarification: what are the default arguments for makeWrapper for?

    # "--prefix"
    # "LD_LIBRARY_PATH"
    # ":"
    # "${dotnet-sdk.icu}/lib"
14:58:26
@gggkiller:matrix.orgGGG.NET needs ICU for globalization features15:09:45
@wiiplayer2:matrix.orgWaldemar TommeDon't think I'll need but re-add it so I don't need to in the (possible) future15:10:40
@gggkiller:matrix.orgGGGIt should add them even if you set makeWrapperArgs15:13:25
@wiiplayer2:matrix.orgWaldemar Tommeoh, ok. then I maybe did not read the source correctly15:13:51
@gggkiller:matrix.orgGGGIt adds them with `++`, so they'll always be added regardless 16:01:52
@gggkiller:matrix.orgGGGAlso, you may not think you use globalization, but even a simple `double.Parse` or `string.ToLower` uses globalization already (unless if you use invariant culture for everything)16:20:19
@wiiplayer2:matrix.orgWaldemar TommeI mostly do but I can't necessarily say the same about my dependencies but good to know16:26:20
18 Jan 2025
@wiiplayer2:matrix.orgWaldemar TommeI'm trying to get MAUI workload to work based on https://discourse.nixos.org/t/dotnet-maui-workload/20370/22 and https://github.com/anpin/maui-on-nix/blob/cd1514c4be6aef7074485e2fe976e2dea6a19426/shell.nix but it doesn't work. After checking DOTNET_ROOT I think it's because the wrong packages get overridden. How do I override the correct packages or is there another (better) way to enable working with workloads?01:18:17
@corngood:corngood.comCorngoodDo you mean that the shell.nix no longer works with latest nixpkgs?02:06:33
@genga898:matrix.orgEmmanuel Genga
In reply to @corngood:corngood.com
Do you mean that the shell.nix no longer works with latest nixpkgs?
Mostly think he's facing the same issue I did where it is very difficult to install workloads when using a shell.nix for dotnet, I struggled with it for a while and gave up, just decided to use devbox for my dotnet project that need workloads
08:44:34
@wiiplayer2:matrix.orgWaldemar TommeYes(-ish). I'm using the latest(-ish) nixpkgs (~a week old) and there the dotnet packages are wrapped so even if I would correct the paths in the script it wouldn't work because I would not manipulate the correct derivation.09:48:52
@wiiplayer2:matrix.orgWaldemar Tomme When overriding and using just dotnetCorePackages.dotnet_8.sdk it works now I think (https://github.com/NixOS/nixpkgs/issues/226107#issuecomment-2598552335) 10:43:05
@wiiplayer2:matrix.orgWaldemar TommeSadly it still doesn't work. When I try to publish the android app I get an error that "Microsoft.NET.Runtime.MonoAOTCompiler.Task" can't be found in the "Sdks" folder in the dotnet sdk.11:48:12
@corngood:corngood.comCorngoodCan we track down where in nixpkgs it used to work?12:08:23
@wiiplayer2:matrix.orgWaldemar Tomme I got further by checking out maui-on-nix with its locked revisions but now it can't execute arm-linux-androideabi-as as a required file is missing. I also don't have the mental capacity right now to look further into it. maybe later and/or tomorrow 14:22:09
@corngood:corngood.comCorngoodGood to know. I'll try to find some time to bisect the workload problem.14:23:40
19 Jan 2025
@wiiplayer2:matrix.orgWaldemar Tomme changed their display name from Waldemar Tomme to Waldemar Tomme (they/them).08:17:01
21 Jan 2025
@emma:rory.gayEmma [it/its]cursed & probably offtopic: how would i get a custom build of dotnet going?15:55:46
@emma:rory.gayEmma [it/its]tl;dr linux-x8615:56:12
@emma:rory.gayEmma [it/its]* tl;dr linux-x86/i68615:56:21

Show newer messages


Back to Room ListRoom Version: 9