!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

113 Members
23 Servers

Load older messages


SenderMessageTime
14 Dec 2025
@emma:rory.gayEmma [it/its]yeah im not seeing nbitcoin exposed in the flake as a package and im not sure how to deal with a default.nix19:26:41
@emma:rory.gayEmma [it/its]oh its in modules19:26:51
@emma:rory.gayEmma [it/its]that's an odd place lol19:26:59
@emma:rory.gayEmma [it/its]not using passthru?19:27:53
@x408788:fi.muni.czJan KvapilYes, some of the modules are name-conflicting with nixpkgs, it's WIP anyways.19:28:36
@emma:rory.gayEmma [it/its]clipboard.png
Download clipboard.png
19:28:44
@x408788:fi.muni.czJan KvapilI guess I just don't know how.19:29:02
@emma:rory.gayEmma [it/its]can confirm im seeing unusually high memory usage, but also a lot of disk io during that time19:29:04
@x408788:fi.muni.czJan KvapilYes.19:29:17
@emma:rory.gayEmma [it/its]4.5G now, odd19:29:30
@x408788:fi.muni.czJan Kvapil

Depending on the $pwd, I guess something like this:

nix-build -E '((import <nixpkgs> {}).callPackage ./modules/nbitcoin/default.nix {}).fetch-deps
19:29:47
@x408788:fi.muni.czJan Kvapil *

Depending on the $pwd, I guess something like this:

nix-build -E '((import <nixpkgs> {}).callPackage ./modules/nbitcoin/default.nix {}).fetch-deps
19:29:50
@emma:rory.gayEmma [it/its]ah19:29:55
@emma:rory.gayEmma [it/its] i ended up doing nix build ../..#modules.nbitcoin.passthru.fetch-deps 19:30:16
@emma:rory.gayEmma [it/its]7G of memory usage with no IO atm19:30:30
@emma:rory.gayEmma [it/its] 12G... seems to get stuck somewhere and i wish i could -v:diag it 19:32:47
@corngood:corngood.comCorngood
$ echo $dotnetProjectFiles
/nix/store/85fkamr6na3xjznqa70hasdzrlxqgbrr-NBitcoin.CppBridge.csproj

This shouldn't be a store path.

19:34:35
@emma:rory.gayEmma [it/its]how did you get there? cause that seems fairly normal to me?19:35:08
@corngood:corngood.comCorngood
diff --git a/modules/nbitcoin/default.nix b/modules/nbitcoin/default.nix
index 2342c8e..bb38b51 100644
--- a/modules/nbitcoin/default.nix
+++ b/modules/nbitcoin/default.nix
@@ -32,7 +32,7 @@ buildDotnetModule rec {
     fileset = sourceFiles;
   };
   sourceRoot = "${src.name}/modules/nbitcoin";
-  projectFile = ./NBitcoin.CppBridge.csproj;
+  projectFile = "NBitcoin.CppBridge.csproj";
 
   nugetDeps = ./deps.json;
 
19:35:19
@x408788:fi.muni.czJan KvapilUf, that's fragile.19:35:35
@emma:rory.gayEmma [it/its](though ive also never had the fetch-deps script work without having to explicitly pass the path to the output deps file, because it tries writing into the store by default...)19:36:03
@x408788:fi.muni.czJan Kvapil

Yeah, about that:

Finished dotnetConfigureHook
/nix/store/qmvcsvn9dw5v7cln85ay8pydir38ab43-fetch-deps.sh: line 10: /nix/store/dxv3prj2zy34n0inhhznihnhww2gfnfd-source/modules/nbitcoin/deps.json: Read-only file system

How does one do that?

19:36:41
@emma:rory.gayEmma [it/its]you just pass the relative path as an argument19:36:54
@emma:rory.gayEmma [it/its] ./result ./deps.json or whatever 19:37:02
@corngood:corngood.comCorngood

I don't understand what dotnet restore is trying to do though. If it's unable to restore on a read-only tree, why is it blowing up the system?

(though ive also never had the fetch-deps script work without having to explicitly pass the path to the output deps file, because it tries writing into the store by default...)

Yeah, I had to do that too

19:37:03
@emma:rory.gayEmma [it/its]clipboard.png
Download clipboard.png
19:37:23
@emma:rory.gayEmma [it/its]interesting predicament i find myself in lol19:37:28
@x408788:fi.muni.czJan Kvapil The docs are a bit dated in that regard: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/dotnet.section.md#generating-and-updating-nuget-dependencies-generating-and-updating-nuget-dependencies
They mention $ nuget-to-json out > deps.json to call explicitly.
19:37:44
@corngood:corngood.comCorngoodfor whatever reason you can kill it with SIGINT but not ctrl-c in the terminal...19:37:51
@x408788:fi.muni.czJan Kvapil kill -9 $(pgrep dotnet) once you check there's only a single dotnet running :D 19:38:17

Show newer messages


Back to Room ListRoom Version: 9