Skip to content

Commit

Permalink
chore: bring back dogfood for display
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jun 22, 2023
1 parent 4e9e5f0 commit c1c2f32
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 39 deletions.
41 changes: 41 additions & 0 deletions dogfood.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
std: inputs: let
inherit (inputs) incl;
inherit (inputs.paisano) pick harvest;
in
std.growOn {
inherit inputs;
cellsFrom = incl ./src ["std" "lib"];
cellBlocks = with std.blockTypes; [
## For downstream use

# std
(runnables "cli" {ci.build = true;})
(functions "devshellProfiles")
(functions "errors")
(data "templates")

# lib
(functions "dev")
(functions "ops")
(nixago "cfg")
];
}
(std.grow {
inherit inputs;
cellsFrom = incl ./src ["local" "tests"];
cellBlocks = with std.blockTypes; [
## For local use in the Standard repository
# local
(devshells "shells" {ci.build = true;})
(nixago "configs")
(containers "containers")
(namaka "checks")
];
})
{
# auxiliary outputs
devShells = harvest inputs.self ["local" "shells"];
packages = harvest inputs.self [["std" "cli"] ["std" "packages"]];
templates = pick inputs.self ["std" "templates"];
checks = pick inputs.self ["tests" "checks"];
}
41 changes: 2 additions & 39 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,53 +54,16 @@
};
# load fwlib again through the framework
# to enable input overloading for blocktypes
std = pick (fwlib.grow {
std = inputs.paisano.pick (fwlib.grow {
inherit inputs;
cellsFrom = inputs.incl ./src ["std"];
cellBlocks = [(fwlib.blockTypes.functions "fwlib")];
}) ["std" "fwlib"];
inherit (inputs.paisano) pick harvest;
in
std.growOn {
inherit inputs;
cellsFrom = ./src;
cellBlocks = with std.blockTypes; [
## For downstream use

# std
(runnables "cli" {ci.build = true;})
(functions "devshellProfiles")
(functions "errors")

# lib
(functions "dev")
(functions "ops")
(nixago "cfg")

# presets
(data "templates")
(nixago "nixago")

## For local use in the Standard repository

# local
(devshells "shells" {ci.build = true;})
(nixago "configs")
(containers "containers")
(namaka "checks")
];
}
{
(import ./dogfood.nix std inputs) {
# the framework's basic top-level tools
inherit (inputs) yants dmerge incl;
inherit (inputs.paisano) pick harvest winnow;
inherit (std) blockTypes actions dataWith flakeModule grow growOn;
}
{
# auxiliary outputs
devShells = harvest inputs.self ["local" "shells"];
packages = harvest inputs.self [["std" "cli"] ["std" "packages"]];
templates = pick inputs.self ["std" "templates"];
checks = pick inputs.self ["tests" "checks"];
};
}

0 comments on commit c1c2f32

Please sign in to comment.