summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2021-01-25 13:57:48 +0700
committerBen Siraphob <bensiraphob@gmail.com>2021-01-26 10:57:07 +0700
commit1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270 (patch)
tree1bdff74d3f609e78f8931a3f32398062d61db84d /pkgs
parentaa8868c7cca8d30706a68a876d048968c83e1cf1 (diff)
downloadnixpkgs-1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270.tar
nixpkgs-1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270.tar.gz
nixpkgs-1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270.tar.bz2
nixpkgs-1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270.tar.lz
nixpkgs-1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270.tar.xz
nixpkgs-1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270.tar.zst
nixpkgs-1c2a2b0a0848d58407fb4ff73a8dc1e854f5a270.zip
treewide: fold -> foldr
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/linux/kernel/generic.nix2
-rw-r--r--pkgs/tools/typesetting/tex/nix/default.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix
index ac9d6fbb2b5..cc7d1a52367 100644
--- a/pkgs/os-specific/linux/kernel/generic.nix
+++ b/pkgs/os-specific/linux/kernel/generic.nix
@@ -68,7 +68,7 @@ assert stdenv.isLinux;
 
 let
   # Combine the `features' attribute sets of all the kernel patches.
-  kernelFeatures = lib.fold (x: y: (x.features or {}) // y) ({
+  kernelFeatures = lib.foldr (x: y: (x.features or {}) // y) ({
     iwlwifi = true;
     efiBootStub = true;
     needsCifsUtils = true;
diff --git a/pkgs/tools/typesetting/tex/nix/default.nix b/pkgs/tools/typesetting/tex/nix/default.nix
index 4ee45bf4bc8..fbb6fdb0fe0 100644
--- a/pkgs/tools/typesetting/tex/nix/default.nix
+++ b/pkgs/tools/typesetting/tex/nix/default.nix
@@ -77,7 +77,7 @@ rec {
             in if fn != null then [{key = fn;}] ++ xs
                else xs;
 
-        in pkgs.lib.fold foundDeps [] deps;
+        in pkgs.lib.foldr foundDeps [] deps;
     };