!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

113 Members
23 Servers

Load older messages


SenderMessageTime
24 Oct 2025
@corngood:corngood.comCorngoodDid you get a complete deps.json then?14:09:51
27 Oct 2025
@manuelbaerenz:matrix.orgManuel Bärenz No, the fetcher failed and didn't create a deps.json. I'll try again soon when I get the complete closed source dependencies from our partner 08:32:51
2 Nov 2025
@emma:rory.gayEmma [it/its]question, how do i use the fetchdeps thing with the nix cli?19:31:00
@emma:rory.gayEmma [it/its]

doing a nix build .\#thing.passthru.fetch-deps && ./result fails with this:

/nix/store/q38z0zig1346h47vyianirr25fi9g42m-fetch-deps.sh: line 10: /nix/store/rxf86xrfxhij48hjqgysi8blj2c9hg88-source/ArcaneLibs.Blazor.Components/deps.nix: Read-only file system
19:31:45
@corngood:corngood.comCorngood
In reply to @emma:rory.gay

doing a nix build .\#thing.passthru.fetch-deps && ./result fails with this:

/nix/store/q38z0zig1346h47vyianirr25fi9g42m-fetch-deps.sh: line 10: /nix/store/rxf86xrfxhij48hjqgysi8blj2c9hg88-source/ArcaneLibs.Blazor.Components/deps.nix: Read-only file system
You can't use .# because that'll be a read-only copy. Try -f . instead
19:33:03
@emma:rory.gayEmma [it/its]oh apparently you can just pass a path... lol19:33:05
@emma:rory.gayEmma [it/its]that fails because i dont have a default.nix... lol19:33:38
@corngood:corngood.comCorngoodYou can pass a .nix file path instead of .19:34:14
@emma:rory.gayEmma [it/its]i have a flake.nix19:34:26
@emma:rory.gayEmma [it/its]thats the only .nix file i have19:34:29
@emma:rory.gayEmma [it/its](i dont want to maintain 6 identical copies of the same file when they only differ in at most 2 lines)19:35:22
@corngood:corngood.comCorngoodOh, you can also pass a path to fetch-deps itself to override it. That might be easiest 19:35:27
@emma:rory.gayEmma [it/its]yep discovered that one already19:35:38
@emma:rory.gayEmma [it/its]but i guess that's my best bet19:35:44
@corngood:corngood.comCorngoodYeah otherwise you need to do an impure eval, maybe using flake compat or something. Passing the path is probably easiest.19:37:12
@emma:rory.gayEmma [it/its]hm, i wonder what the best way would be to use nix to publish nuget packages19:53:00
@emma:rory.gayEmma [it/its] since packNupkg emits multiple nupkg files, im not sure how ot best deal with thta 19:53:31
@emma:rory.gayEmma [it/its]
┏━ Dependency Graph with 6 roots:
┃ ✔ ArcaneLibs.Blazor.Components-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.Logging-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.Timings-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.StringNormalisation-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.Legacy-v1-1 ⏱ 12s
┣━━━ Builds         
┗━ ∑ ⏵ 0 │ ✔ 6 │ ⏸ 0 │ Finished at 20:57:35 after 13s

also wondering how to best handle versioning, since my current ci setup uses current time for that

19:58:31
@emma:rory.gayEmma [it/its]
          rm -rf *.nupkg
          export DATE=`date -u '+%Y%m%d-%H%M%S'`
          export REV=`git rev-parse --short HEAD`
          dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs
          dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Logging
          dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Timings
          dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Legacy
          dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.StringNormalisation
          dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Blazor.Components
          dotnet nuget push $(ls *.nupkg) -k ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

that's my current ci setup, that i'd like to get rid of

19:59:17
@niklaskorz:matrix.orgniklaskorz joined the room.20:09:36
@emma:rory.gayEmma [it/its]oh... i didnt realise but the nupkg files are empty... lol21:17:21
3 Nov 2025
@manuelbaerenz:matrix.orgManuel Bärenz

Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.

  • If I omit it, I get error NU1101: Unable to find package ... on a package that should be in the dlls.If I set
18:03:55
@manuelbaerenz:matrix.orgManuel Bärenz *

Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.

  • If I omit it, I get error NU1101: Unable to find package ... on a package that should be in the dlls.If I set

EDITING

18:04:02
@manuelbaerenz:matrix.orgManuel Bärenz *

Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.

  • If I omit it, I get error NU1101: Unable to find package ... on a package that should be in the dlls.
  • If I set it to the .sln file, it errors with error MSB3202: The project file "/nix/store/wrapperProject/wrapperProject.csproj" was not found. (yes, without any hashes. probably it misinterprets paths somehow)
  • If I set it to the .csproj file, it eventually OOMs at 40 GB memory in dotnetConfigureHook
18:06:10
@manuelbaerenz:matrix.orgManuel Bärenz A basic question. The .nupkg file with the dlls that should do all the heavy lifting: Should I make a proper package out of it with buildDotnetModule, stdenv.mkDerivation or similar, and pass it to my wrapper project as buildInputs? Or is that not necessary because the dlls are on the nupkg server and should be autodetected through deps.json? 18:09:42
@manuelbaerenz:matrix.orgManuel Bärenz *

Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.

  1. If I omit it, I get error NU1101: Unable to find package ... on a package that should be in the dlls.
  2. If I set it to the .sln file, it errors with error MSB3202: The project file "/nix/store/wrapperProject/wrapperProject.csproj" was not found. (yes, without any hashes. probably it misinterprets paths somehow)
  3. If I set it to the .csproj file, it eventually OOMs at 40 GB memory in dotnetConfigureHook

EDIT: Nevermind 2. & 3., it seems that projectFile must be a string and not a path.

18:15:30
@gggkiller:matrix.orgGGG not necessary, it'll be detected through deps.json 20:31:40
4 Nov 2025
@emma:rory.gayEmma [it/its]hm, trying to follow the manual but it doesnt seem im able to include a project reference?02:09:28
@emma:rory.gayEmma [it/its]
/tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103: Unable to find a stable package ArcaneLibs with version (>= 0.0.0)
/tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103:   - Found 89 version(s) in nuget [ Nearest version: 1.0.0-preview9938860405.f09a666 ]                                                                                                                                                                                                                     
/tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103:   - Found 0 version(s) in /nix/store/aj7lxjjn3rl2bazsv9p0dfnv069j6rsq-dotnet-sdk-10.0.100-rc.2.25502.107/share/dotnet/library-packs                                                                                                                                                                       
/tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103:   - Found 0 version(s) in _nix                                       
  Failed to restore /tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj (in 1.87 sec).

getting this in the fetch-deps script

02:10:21
@emma:rory.gayEmma [it/its] fwiw i have <PackageReference Include="ArcaneLibs" Version="*" Condition=" '$(ContinuousIntegrationBuild)'=='true' "/> and projectReferences = [ arcanelibs.packages."${pkgs.stdenv.hostPlatform.system}".ArcaneLibs ]; 02:11:14

Show newer messages


Back to Room ListRoom Version: 9