From 13b953c8644e7457bf2b429ca14d7367f6eebf85 Mon Sep 17 00:00:00 2001 From: nicoo Date: Thu, 28 Nov 2024 16:27:36 +0000 Subject: [PATCH] lib.packagesFromDirectoryRecursive: More precise type signature Pulled above the inputs section to avoid duplicating information. --- lib/filesystem.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/filesystem.nix b/lib/filesystem.nix index 5a78bcca4ebd..2f43792017f9 100644 --- a/lib/filesystem.nix +++ b/lib/filesystem.nix @@ -306,6 +306,16 @@ in As a result, directories with no `.nix` files (including empty directories) will be transformed into empty attribute sets. + # Type + + ``` + packagesFromDirectoryRecursive :: { + callPackage :: Path -> {} -> a, + directory :: Path, + ... + } -> AttrSet + ``` + # Inputs Structured function argument @@ -317,20 +327,10 @@ in : `pkgs.callPackage` - Type: `Path -> AttrSet -> a` - `directory` : The directory to read package files from - Type: `Path` - - - # Type - - ``` - packagesFromDirectoryRecursive :: AttrSet -> AttrSet - ``` # Examples :::{.example}