Skip to content

Commit

Permalink
feat(pops.data): remove allData
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed May 1, 2024
1 parent a8fac43 commit 3f63bbf
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 36 deletions.
16 changes: 8 additions & 8 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions src/pops/allData.nix

This file was deleted.

7 changes: 7 additions & 0 deletions src/pops/data.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ flops.haumea.pops.default.setInit {
matchers.toml
(matchers.nix loaders.scoped)
(matchers.nix loaders.default)
(matchers.regex "^(.+)\\.(yaml|yml)$" (
_: inputs: path:
if inputs ? inputs && inputs.inputs ? nixpkgs then
root.ops.readYAML nixpkgs path
else
path
))
];
}
2 changes: 1 addition & 1 deletion tests/data/expr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let
inherit (omnibus.flake.inputs) nixpkgs;
in
(omnibus.pops.allData.addLoadExtender {
(omnibus.pops.data.addLoadExtender {
load = {
src = ./__fixture;
inputs = {
Expand Down
2 changes: 1 addition & 1 deletion units/std/mkBlocks/data.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# SPDX-License-Identifier: MIT

{ omnibus }: omnibus.pops.allData
{ omnibus }: omnibus.pops.data

0 comments on commit 3f63bbf

Please sign in to comment.