From a342ebe166294285c0f0280409139b1421335e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sat, 4 Mar 2023 13:20:49 +0100 Subject: [PATCH 1/2] lib/strings: hide asciiTable Since it's an attribute set, the lib function location generating code tries to generate locations for each of the characters... --- lib/strings.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/strings.nix b/lib/strings.nix index e49ed4382240c..3c3529c3285ee 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -4,6 +4,8 @@ let inherit (builtins) length; +asciiTable = import ./ascii-table.nix; + in rec { @@ -34,8 +36,6 @@ rec { unsafeDiscardStringContext ; - asciiTable = import ./ascii-table.nix; - /* Concatenate a list of strings. Type: concatStrings :: [string] -> string From 568c84c7dbe738700a261965e886d49646e0d167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sat, 4 Mar 2023 13:23:26 +0100 Subject: [PATCH 2/2] .github: build nixpkgs manual on `lib` changes The nixpkgs manual includes documentation for `lib` functions. --- .github/workflows/manual-nixpkgs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/manual-nixpkgs.yml b/.github/workflows/manual-nixpkgs.yml index 599840006524c..4f76a0d732c8e 100644 --- a/.github/workflows/manual-nixpkgs.yml +++ b/.github/workflows/manual-nixpkgs.yml @@ -8,6 +8,7 @@ on: - master paths: - 'doc/**' + - 'lib/**' jobs: nixpkgs: