3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools
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
..
admin ansible_2_4: init at 2.4.0.0 (#30073) 2017-10-17 22:03:43 +01:00
archivers unrar: 5.5.7 -> 5.5.8 2017-10-12 21:57:12 +03:00
audio ocamlPackages: default to 4.04 2017-10-19 17:57:14 +02:00
backup Merge pull request #30287 from indiscipline/borgbackup 2017-10-13 20:37:12 +01:00
bluetooth misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
bootloaders/refind
cd-dvd Merge branch 'master' into staging 2017-10-05 07:41:39 +00:00
compression treewide: Manual fix more pkg-config build-inputs 2017-09-21 15:49:54 -04:00
filesystems Merge branch 'master' into staging 2017-10-14 10:36:13 +02:00
graphics povray: 3.7.0.3 -> 3.7.0.4 2017-10-18 03:15:23 +03:00
inputmethods ibus-table: add pygobject3 2017-10-10 15:51:05 +00:00
misc Merge remote-tracking branch 'channels/nixpkgs-unstable' into staging 2017-10-18 14:53:30 -04:00
nagstamon
networking Merge pull request #30527 from acowley/isync-1.3.0 2017-10-18 07:28:02 -04:00
nix/info nix-info: Disable doCheck by default 2017-10-17 18:26:08 +03:00
package-management nixUnstable: Bump for nix-shell interpreter bugfix 2017-10-19 19:25:08 -04:00
security Merge branch 'master' into staging 2017-10-14 10:36:13 +02:00
system smartmontools: drive DB 4394 -> 4548 2017-10-17 11:03:07 +08:00
text Get rid of most @rpath nonsense on Darwin 2017-10-08 16:13:46 -04:00
typesetting texlive: fix evaluation on Nix 1.11 2017-10-30 00:54:48 -04:00
video misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
virtualization awsebcli: 3.10.5 -> 3.11.0 2017-10-13 09:44:25 +10:30
X11 Merge remote-tracking branch 'upstream/staging' into deps-reorg 2017-09-28 12:32:57 -04:00