Skip to content

Commit

Permalink
chore(lib): adjust order
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Feb 20, 2024
1 parent 2ede5bd commit ce35a44
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/errors/requiredInputsLazily.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ super, lib }:
inputs: _pop: listInputs:
inputs: popName: listInputs:
let
getRequiredInput = key: (super.requiredInputs inputs "test" [ key ]).${key};
getRequiredInput = key: (super.requiredInputs inputs popName [ key ]).${key};
in
lib.genAttrs listInputs (name: getRequiredInput name)
4 changes: 3 additions & 1 deletion src/lib/omnibus/inputsToPaths.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ let
inputs:
l.pipe inputs [
(l.filterAttrs (_: v: l.isAttrs v && (v ? sourceInfo.outPath || v ? outPath)))
(l.mapAttrs (_: v: v.sourceInfo.outPath or v.outPath or v.path))
(l.mapAttrs (
_: v: if !v ? _type then v.outPath or v.path or v.sourceInfo.outPath else ""
))
(l.mapAttrs (
_: v: if lib.strings.isStorePath v then getTopLevelPath (toString v) else [ ]
))
Expand Down
1 change: 1 addition & 0 deletions tests/_snapshots/lib
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pretty
{
inputsToPaths = [
"/nix/store/w065s95yy5k456kwa1h6bg9mc46gy89n-tracing-log-0.4.0"
"/nix/store/w065s95yy5k456kwa1h6bg9mc46gy89n-tracing-log-0.2.0"
"/nix/store/w065s95yy5k456kwa1h6bg9mc46gy89n-tracing-log-0.3.0"
];
Expand Down
3 changes: 2 additions & 1 deletion tests/lib/expr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ in
outPath = "<PATH-a.b>";
};
c = {
outPath = "<PATH-a.c>";
outPath = "/nix/store/w065s95yy5k456kwa1h6bg9mc46gy89n-tracing-log-0.4.0";
};
};
_type = "flake";
outPath = "/nix/store/w065s95yy5k456kwa1h6bg9mc46gy89n-tracing-log-0.3.0";
};
};
Expand Down
3 changes: 3 additions & 0 deletions units/nixos/homeProfiles/presets/starship/starship.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ add_newline = true

[character]
success_symbol = "[λ](bold blue)"

[git_status]
ignore_submodules = true

0 comments on commit ce35a44

Please sign in to comment.