Skip to content

Commit

Permalink
lib.path: init as skeleton
Browse files Browse the repository at this point in the history
Currently doesn't contain anything, future commits will add to it
  • Loading branch information
infinisil committed Dec 8, 2022
1 parent a4381b0 commit f2c7458
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/doc-support/lib-function-docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ with pkgs; stdenv.mkDerivation {
docgen lists 'List manipulation functions'
docgen debug 'Debugging functions'
docgen options 'NixOS / nixpkgs option handling'
docgen path 'Path functions'
docgen filesystem 'Filesystem functions'
docgen sources 'Source filtering functions'
'';
Expand Down
2 changes: 2 additions & 0 deletions doc/functions/library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

<xi:include href="./library/generated/options.xml" />

<xi:include href="./library/generated/path.xml" />

<xi:include href="./library/generated/filesystem.xml" />

<xi:include href="./library/generated/sources.xml" />
Expand Down
3 changes: 2 additions & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ let
maintainers = import ../maintainers/maintainer-list.nix;
teams = callLibs ../maintainers/team-list.nix;
meta = callLibs ./meta.nix;
sources = callLibs ./sources.nix;
versions = callLibs ./versions.nix;

# module system
Expand All @@ -53,7 +52,9 @@ let
fetchers = callLibs ./fetchers.nix;

# Eval-time filesystem handling
path = callLibs ./path.nix;
filesystem = callLibs ./filesystem.nix;
sources = callLibs ./sources.nix;

# back-compat aliases
platforms = self.systems.doubles;
Expand Down
4 changes: 4 additions & 0 deletions lib/path.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Functions for working with paths, see ./path-design.md
{ lib }: /* No rec! Add dependencies on this file just above */ {

}

0 comments on commit f2c7458

Please sign in to comment.