Skip to content

Commit

Permalink
refactor: remove the debug traced; std check is a better tool
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Feb 18, 2023
1 parent 2cb985f commit 81014d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
12 changes: 1 addition & 11 deletions grow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
inherit (types) Block Target;
ImportSignatureFor = import ./newImportSignatureFor.nix {inherit l deSystemize;};
ExtractFor = import ./newExtractFor.nix {inherit l types paths;};
Debug = import ./newDebug.nix {inherit l;};
ProcessCfg = import ./newProcessCfg.nix {inherit l types;};
Helpers = import ./newHelpers.nix {inherit l;};
/*
Expand Down Expand Up @@ -43,10 +42,6 @@
you aren't doing cross-compilation, search for the upstream bug.
It's there! Guaranteed!
Debugging? You can gain a better understanding of the `inputs` argument by
declaring the debug attribute for example like so: `debug = ["inputs" "yants"];`.
A tracer will give you more context about what's in it for you.
Finally, there are a couple of special inputs:
- `inputs.cells` - all other cells, deSystemized
Expand All @@ -70,16 +65,11 @@
"x86_64-darwin"
"aarch64-darwin"
],
debug ? false,
nixpkgsConfig ? {},
}: let
inherit (ProcessCfg {inherit cellBlocks systems cellsFrom;}) systems' cells' cellBlocks';
inherit (Helpers) accumulate optionalLoad;

_debug = s: attrs:
if debug == false
then attrs
else Debug debug s attrs;
__ImportSignatureFor = ImportSignatureFor {inherit inputs nixpkgsConfig;};
___extract = ExtractFor cellsFrom;

Expand All @@ -88,7 +78,7 @@
__extract = ___extract system;
# Load a cell, return the flake outputs injected by std
_ImportSignatureFor = cell: {
inputs = _debug "inputs on ${system}" (__ImportSignatureFor system res.output); # recursion on cells
inputs = __ImportSignatureFor system res.output; # recursion on cells
inherit cell;
};
loadCellFor = cellName: let
Expand Down
20 changes: 0 additions & 20 deletions grow/newDebug.nix

This file was deleted.

0 comments on commit 81014d0

Please sign in to comment.