From 6aca7612e5ce0ef1619ec7327c8a03be7f157eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 10 Jan 2025 15:00:59 +0100 Subject: [PATCH] add debugging of submodule value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- flake.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index f8a2665a..891b5dc2 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ { description = "Nim Codex build flake"; - + inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; circom-compat = { @@ -22,7 +22,7 @@ circomCompatPkg = circom-compat.packages.${system}.default; buildTarget = pkgsFor.${system}.callPackage ./nix/default.nix { inherit stableSystems circomCompatPkg; - src = self; + src = pkgsFor.${system}.lib.traceValFn (v: "submodules: ${toString v.submodules)}") self; }; build = targets: buildTarget.override { inherit targets; }; in rec { @@ -31,7 +31,8 @@ }); nixosModules.nim-codex = { config, lib, pkgs, ... }: import ./nix/service.nix { - inherit self config lib pkgs; + inherit config lib pkgs; + self = pkgs.lib.traceValFn (v: "submodules: ${toString v.submodules)}") self; }; devShells = forAllSystems (system: let @@ -72,4 +73,4 @@ }; }); }; -} \ No newline at end of file +}