*: move internal files into lib subdir

They are not part of our public interfaces and must not be imported
alone.
This commit is contained in:
oxalica
2024-06-02 00:51:18 -04:00
parent b46857a406
commit 37a2fe6c74
7 changed files with 8 additions and 8 deletions

View File

@@ -1,2 +1,2 @@
final: prev:
(import ./rust-overlay.nix final) (prev // (import ./manifest.nix final prev))
(import ./lib/rust-bin.nix final) (prev // (import ./lib/manifests.nix final prev))

View File

@@ -83,4 +83,4 @@ All public attributes provided by the overlay are below. Fields not defined here
}
```
For more details, see also the source code of [`rust-overlay.nix`](../rust-overlay.nix).
For more details, see also the source code of [`lib/rust-bin.nix`](../lib/rust-bin.nix).

View File

@@ -5,9 +5,9 @@ let
inherit (final.lib)
attrNames concatMap elemAt filter hasAttr mapAttrs mapAttrs' removeSuffix;
targets = import ./manifests/targets.nix // { _ = "*"; };
renamesList = import ./manifests/renames.nix;
profilesList = import ./manifests/profiles.nix;
targets = import ../manifests/targets.nix // { _ = "*"; };
renamesList = import ../manifests/renames.nix;
profilesList = import ../manifests/profiles.nix;
inherit (final.rust-bin) distRoot;
@@ -117,9 +117,9 @@ in {
# For internal usage.
manifests = {
stable = uncompressManifestSet "stable" (import ./manifests/stable);
beta = uncompressManifestSet "beta" (import ./manifests/beta);
nightly = uncompressManifestSet "nightly" (import ./manifests/nightly);
stable = uncompressManifestSet "stable" (import ../manifests/stable);
beta = uncompressManifestSet "beta" (import ../manifests/beta);
nightly = uncompressManifestSet "nightly" (import ../manifests/nightly);
};
};
}