!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

124 Members
24 Servers

Load older messages


SenderMessageTime
10 Jan 2025
@gggkiller:matrix.orgGGGI know we already do, but it's pretty much not used in nixpkgs20:39:23
14 Jan 2025
@corngood:corngood.comCorngood patchcil change: https://github.com/NixOS/nixpkgs/pull/373107 GGG This sounds cool. I'll probably have to wait until I have some downtime to wrap my head around it. I thought others here might be interested. 13:56:59
@gggkiller:matrix.orgGGGFair enough, it's not very complex but there are quite a few steps in the process so it's not something that easy to review 13:58:42
@gggkiller:matrix.orgGGGEven more considering whoever reviews it will need to read and understand the patchcil source as well13:58:58
@wiiplayer2:matrix.orgWaldemar TommeHi, quick question (hopefully): I'm building a .NET package with buildDotnetModule and need two cli tools available. I tried buildInputs but this doesn't seem to work. How can I make the tools available to the dotnet tool?14:26:03
@emma:rory.gayEmma [it/its]nativeBuildInputs, iirc?14:26:49
@emma:rory.gayEmma [it/its]or dyou mean at runtime?14:26:58
@emma:rory.gayEmma [it/its]* or do you mean at runtime?14:27:02
@wiiplayer2:matrix.orgWaldemar Tommeat runtime14:27:02
@emma:rory.gayEmma [it/its] one sec 14:27:19
@emma:rory.gayEmma [it/its]theres a separate thing for that but i need to look it up14:27:31
@emma:rory.gayEmma [it/its] runtimeDeps :) 14:27:55
@wiiplayer2:matrix.orgWaldemar Tomme :/ i tried earlier and now as well but it only appends the /lib sub paths to LD_LIBRARY_PATH it seems 14:29:52
@wiiplayer2:matrix.orgWaldemar Tommeotherwise I will wrap it but would like it if I can manage it with a single package14:31:16
@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

Show newer messages


Back to Room ListRoom Version: 9