nixpkgs/pkgs
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
..
applications Merge pull request #30528 from disassembler/gitea 2017-10-20 14:01:54 +00:00
build-support buildFHSEnv: fix NIX_* compiler flags 2017-10-17 00:39:39 +03:00
common-updater
data Merge branch 'all-cabal-hashes-components' 2017-10-15 18:13:29 -04:00
desktops plasma-5: remove startkde 2017-10-20 09:28:56 -05:00
development scons: fix meta eval 2017-10-20 23:50:27 +02:00
games openra: 20161019 -> 20171014 2017-10-19 23:18:54 +03:00
misc higan: 104 -> 105 2017-10-17 06:02:40 -02:00
os-specific Merge pull request #30407 from sorki/lxc_2.1.0 2017-10-20 21:54:02 +01:00
servers biboumi: init at 6.1 (#30193) 2017-10-20 20:14:41 +00:00
shells Merge branch 'master' into staging 2017-10-14 10:36:13 +02:00
stdenv Get rid of most @rpath nonsense on Darwin 2017-10-08 16:13:46 -04:00
test treewide: Use *Platform.extensions 2017-09-13 11:16:10 -04:00
tools texlive: fix evaluation on Nix 1.11 2017-10-30 00:54:48 -04:00
top-level Merge branch 'staging' 2017-10-20 23:46:03 +02:00