nixpkgs/pkgs/tools/typesetting/tex
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
..
auctex auctex: 11.89 -> 11.90 2017-01-11 10:46:21 +01:00
dblatex dblatex: use python2 2016-10-18 23:16:07 +02:00
lkproof treewide: Add lots of platforms to packages with no meta 2016-08-02 21:17:44 +03:00
nix stdenv/stripHash: print to stdout, not to variable 2016-10-11 18:34:36 +02:00
pgf treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
pgfplots treewide: Add lots of platforms to packages with no meta 2016-08-02 21:17:44 +03:00
tetex treewide: fix the remaining issues with meta attributes 2017-04-29 04:24:34 +00:00
tex4ht pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
texlive texlive: fix evaluation on Nix 1.11 2017-10-30 00:54:48 -04:00