diff --git a/flake.nix b/flake.nix index 8b15ebc..b7aa086 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,8 @@ self = srcPops; }; - inherit (src) lib; + inherit src; + inherit (src) lib ops errors; templates = { nixos = { diff --git a/local/lock/flake.lock b/local/lock/flake.lock index b686687..8fc2a9c 100644 --- a/local/lock/flake.lock +++ b/local/lock/flake.lock @@ -36,7 +36,7 @@ "type": "github" } }, - "climod": { + "climodSrc": { "flake": false, "locked": { "lastModified": 1669486888, @@ -585,14 +585,14 @@ "type": "github" } }, - "makes": { + "makesSrc": { "flake": false, "locked": { - "lastModified": 1698774087, - "narHash": "sha256-L/kuYmUryxS3YdmwOMpYQx0Pgqy0KSaUh0ao8kXA8m4=", + "lastModified": 1699027612, + "narHash": "sha256-3Kj3K+qCSbm3jOqSc5/KWGA5ts1QiTZf4CnfeHhfSCE=", "owner": "fluidattacks", "repo": "makes", - "rev": "a3691097c615867e10d596e0910b66aa93a796f9", + "rev": "0999bb42f840e8a074b49b1560c6cfd136b61b1f", "type": "github" }, "original": { @@ -1025,12 +1025,12 @@ "root": { "inputs": { "agenix": "agenix", - "climod": "climod", + "climodSrc": "climodSrc", "darwin": "darwin_2", "devshell": "devshell", "fenix": "fenix", "home-manager": "home-manager_2", - "makes": "makes", + "makesSrc": "makesSrc", "nickel": "nickel", "nil": "nil", "nixfmt": "nixfmt", diff --git a/local/lock/flake.nix b/local/lock/flake.nix index 5d29e0c..3026bc5 100644 --- a/local/lock/flake.nix +++ b/local/lock/flake.nix @@ -19,8 +19,8 @@ fenix.url = "github:nix-community/fenix"; fenix.inputs.nixpkgs.follows = "nixpkgs"; - makes.url = "github:fluidattacks/makes"; - makes.flake = false; + makesSrc.url = "github:fluidattacks/makes"; + makesSrc.flake = false; nur.url = "github:nix-community/NUR"; @@ -58,8 +58,8 @@ }; inputs = { - climod.url = "github:nixosbrasil/climod"; - climod.flake = false; + climodSrc.url = "github:nixosbrasil/climod"; + climodSrc.flake = false; }; outputs = _: { }; } diff --git a/src/ops/makes.nix b/src/ops/makes.nix index 89a772b..7ca98b3 100644 --- a/src/ops/makes.nix +++ b/src/ops/makes.nix @@ -6,12 +6,12 @@ let l = nixpkgs.lib // builtins; inherit - (root.errors.requiredInputs inputs "lib" [ + (root.errors.requiredInputs inputs "omnibus.pops.self" [ "nixpkgs" - "makes" + "makesSrc" ]) nixpkgs - makes + makesSrc ; in l.fix ( @@ -22,6 +22,6 @@ l.fix ( __nixpkgs__ = nixpkgs; __nixpkgsSrc__ = nixpkgs.path; }) - (import (makes + /src/args/agnostic.nix) { inherit (nixpkgs) system; }) + (import (makesSrc + /src/args/agnostic.nix) { inherit (nixpkgs) system; }) .__unfix__ ) diff --git a/src/readYAML.nix b/src/ops/readYAML.nix similarity index 100% rename from src/readYAML.nix rename to src/ops/readYAML.nix diff --git a/src/pops/allData.nix b/src/pops/allData.nix index 4b49f3f..b0f4fba 100644 --- a/src/pops/allData.nix +++ b/src/pops/allData.nix @@ -3,7 +3,7 @@ loader = with haumea; [ (matchers.regex "^(.+)\\.(yaml|yml)$" ( _: _: path: - root.readYAML path + root.ops.readYAML path )) ]; }; diff --git a/src/pops/scripts.nix b/src/pops/scripts.nix index 32ab124..0bbd711 100644 --- a/src/pops/scripts.nix +++ b/src/pops/scripts.nix @@ -8,14 +8,14 @@ in { inherit nixpkgs; } - // lib.optionalAttrs (inputs ? climod) { - climod = nixpkgs.callPackage inputs.climod { pkgs = nixpkgs; }; + // lib.optionalAttrs (inputs ? climodSrc) { + climod = nixpkgs.callPackage inputs.climodSrc { pkgs = nixpkgs; }; } - // lib.optionalAttrs (inputs ? makes) ( + // lib.optionalAttrs (inputs ? makesSrc) ( makes // { inputs = { - makesLib = makes; + inherit makes; }; } ); diff --git a/tests/makes/expr.nix b/tests/makes/expr.nix index a86f75a..295ab86 100644 --- a/tests/makes/expr.nix +++ b/tests/makes/expr.nix @@ -1,13 +1,13 @@ { omnibus, lib }: let - inherit (omnibus.flake.inputs) nixpkgs makes; + inherit (omnibus.flake.inputs) nixpkgs makesSrc; omnibusLib = (omnibus.pops.self.addLoadExtender { load = { inputs = { inputs = { nixpkgs = nixpkgs.legacyPackages.x86_64-linux; - inherit makes; + inherit makesSrc; }; }; };