From 7488e5e7dbc5bcf749d493efc985cb7053430538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claes=20Wallin=20=28=E9=9F=8B=E5=98=89=E8=AA=A0=29?= Date: Tue, 14 Aug 2018 13:15:45 +0800 Subject: [PATCH] Problem: raco test is slower than non-nix raco test raco test still breaks inside Nix, but running it on the nix derivation works. However, it's 2-3x slower than non-nix raco test with just full racket and raco-linked fractalide. Is it because if the huge links.rktd? If so, flattening should help. Solution: Add a flattened version of fractalide-tests to find out. --- pkgs/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/default.nix b/pkgs/default.nix index e6d21232..6ca27e42 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -64,6 +64,10 @@ pkgs { } '' racket -l- raco test ${fractalide-tests-pkg.env}/share/racket/pkgs/*/modules/rkt/rkt-fbp/agents ''; + + fractalide-tests-flat = fractalide-tests.overrideAttrs (oldAttrs: { + buildInputs = [ fractalide.override { flat = true; } ]; + }); }) ]; }