summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacek Galowicz <jacek@galowicz.de>2021-01-28 08:51:21 +0100
committerJacek Galowicz <jacek@galowicz.de>2021-01-28 23:49:05 +0100
commit577d58a8e01aead5eb237d39a6d7df1fb7aa00c4 (patch)
treefba2f9551587e9f3317494da05eb7d0566136a3d
parent001ba3934e329a457d26c4f45e666b2091c7dd80 (diff)
downloadnixpkgs-577d58a8e01aead5eb237d39a6d7df1fb7aa00c4.tar
nixpkgs-577d58a8e01aead5eb237d39a6d7df1fb7aa00c4.tar.gz
nixpkgs-577d58a8e01aead5eb237d39a6d7df1fb7aa00c4.tar.bz2
nixpkgs-577d58a8e01aead5eb237d39a6d7df1fb7aa00c4.tar.lz
nixpkgs-577d58a8e01aead5eb237d39a6d7df1fb7aa00c4.tar.xz
nixpkgs-577d58a8e01aead5eb237d39a6d7df1fb7aa00c4.tar.zst
nixpkgs-577d58a8e01aead5eb237d39a6d7df1fb7aa00c4.zip
Deprecate lib.crossLists
-rw-r--r--lib/lists.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lists.nix b/lib/lists.nix
index 06cee2eb112..56af4d9daa1 100644
--- a/lib/lists.nix
+++ b/lib/lists.nix
@@ -629,7 +629,9 @@ rec {
       crossLists (x:y: "${toString x}${toString y}") [[1 2] [3 4]]
       => [ "13" "14" "23" "24" ]
   */
-  crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f];
+  crossLists = builtins.trace
+    "lib.crossLists is deprecated, use lib.cartesianProductOfSets instead"
+    (f: foldl (fs: args: concatMap (f: map f args) fs) [f]);
 
 
   /* Remove duplicate elements from the list. O(n^2) complexity.