Files
nixpkgs/pkgs/tools/typesetting
Dmitry Kalinkin ba3c9df01a texlive: fix evaluation on Nix 1.11
The problem was in builtins.partition call. I've tried to rewrite it with
builtins.foldl', but that doesn't help. However replacing it with a pair of
builtins.filter calls works.

diff --git a/lib/lists.nix b/lib/lists.nix
--- a/lib/lists.nix
+++ b/lib/lists.nix
@@ -242,10 +242,10 @@ rec {
        => { right = [ 5 3 4 ]; wrong = [ 1 2 ]; }
   */
   partition = builtins.partition or (pred:
-    foldr (h: t:
+    builtins.foldl' (t: h:
       if pred h
-      then { right = [h] ++ t.right; wrong = t.wrong; }
-      else { right = t.right; wrong = [h] ++ t.wrong; }
+      then { right = t.right ++ [h]; wrong = t.wrong; }
+      else { right = t.right; wrong = t.wrong ++ [h]; }
     ) { right = []; wrong = []; });

   /* Merges two lists of the same size together. If the sizes aren't the same
2017-10-30 00:54:48 -04:00
..
2017-08-11 11:13:31 +09:00
2017-09-29 15:33:08 +00:00
2017-04-08 23:28:03 -05:00
2017-09-14 19:09:26 +08:00
2017-08-01 08:36:35 +02:00
2017-01-02 22:50:53 +08:00
2017-08-21 22:49:10 +02:00
2017-10-30 00:54:48 -04:00