lib: move select.select -> select for backwards compat with old CLIs
This commit is contained in:
@@ -30,6 +30,6 @@ lib.fix (clanLib: {
|
|||||||
# Plain imports.
|
# Plain imports.
|
||||||
values = import ./introspection { inherit lib; };
|
values = import ./introspection { inherit lib; };
|
||||||
jsonschema = import ./jsonschema { inherit lib; };
|
jsonschema = import ./jsonschema { inherit lib; };
|
||||||
select = self.inputs.nix-select.lib;
|
inherit (self.inputs.nix-select.lib) parseSelector applySelectors select;
|
||||||
facts = import ./facts.nix { inherit lib; };
|
facts = import ./facts.nix { inherit lib; };
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -705,7 +705,7 @@ class Flake:
|
|||||||
flake = builtins.getFlake("path:{self.store_path}?narHash={self.hash}");
|
flake = builtins.getFlake("path:{self.store_path}?narHash={self.hash}");
|
||||||
in
|
in
|
||||||
flake.inputs.nixpkgs.legacyPackages.{config["system"]}.writeText "clan-flake-select" (
|
flake.inputs.nixpkgs.legacyPackages.{config["system"]}.writeText "clan-flake-select" (
|
||||||
builtins.toJSON [ {" ".join([f"(flake.clanInternals.clanLib.select.applySelectors (builtins.fromJSON ''{attr}'') flake)" for attr in str_selectors])} ]
|
builtins.toJSON [ {" ".join([f"(flake.clanInternals.clanLib.applySelectors (builtins.fromJSON ''{attr}'') flake)" for attr in str_selectors])} ]
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
if tmp_store := nix_test_store():
|
if tmp_store := nix_test_store():
|
||||||
|
|||||||
@@ -86,8 +86,8 @@
|
|||||||
# only adding clanCoreWithVendoredDeps to the nix store is not enough
|
# only adding clanCoreWithVendoredDeps to the nix store is not enough
|
||||||
templateDerivation = pkgs.closureInfo {
|
templateDerivation = pkgs.closureInfo {
|
||||||
rootPaths =
|
rootPaths =
|
||||||
builtins.attrValues (self.clanLib.select.select "clan.templates.clan.*.path" self)
|
builtins.attrValues (self.clanLib.select "clan.templates.clan.*.path" self)
|
||||||
++ builtins.attrValues (self.clanLib.select.select "clan.templates.machine.*.path" self);
|
++ builtins.attrValues (self.clanLib.select "clan.templates.machine.*.path" self);
|
||||||
};
|
};
|
||||||
|
|
||||||
clanCoreWithVendoredDeps =
|
clanCoreWithVendoredDeps =
|
||||||
|
|||||||
Reference in New Issue
Block a user