From f2c7458f95cd3523a7dcb7239a5b5b8258ad83d9 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 8 Dec 2022 22:46:57 +0100 Subject: [PATCH] lib.path: init as skeleton Currently doesn't contain anything, future commits will add to it --- doc/doc-support/lib-function-docs.nix | 1 + doc/functions/library.xml | 2 ++ lib/default.nix | 3 ++- lib/path.nix | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 lib/path.nix diff --git a/doc/doc-support/lib-function-docs.nix b/doc/doc-support/lib-function-docs.nix index cbcbed4310af1..de0eaa2a5a0f1 100644 --- a/doc/doc-support/lib-function-docs.nix +++ b/doc/doc-support/lib-function-docs.nix @@ -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' ''; diff --git a/doc/functions/library.xml b/doc/functions/library.xml index b291356c14b85..790d3a4aea400 100644 --- a/doc/functions/library.xml +++ b/doc/functions/library.xml @@ -26,6 +26,8 @@ + + diff --git a/lib/default.nix b/lib/default.nix index 8bb06954518b9..c8fe6fd9876ab 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -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 @@ -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; diff --git a/lib/path.nix b/lib/path.nix new file mode 100644 index 0000000000000..0b79d369889a4 --- /dev/null +++ b/lib/path.nix @@ -0,0 +1,4 @@ +# Functions for working with paths, see ./path-design.md +{ lib }: /* No rec! Add dependencies on this file just above */ { + +}