Skip to content

Commit 4de0315

Browse files
committed
Improve remote store eval time
This code used to put the .drv path into the string context for each package. That meant we had to query the store each time one of these was evaluated for the out path. This is pretty quick when using a non-remote store. But the latency with the remote store really slows us down. We should just calculate the outPath once instead, and use that throughout.
1 parent 4cb78ba commit 4de0315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/load-cabal-plan.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ let
7575
buildable = true;
7676
} // lookupDependencies hsPkgs.pkgsBuildBuild (components.setup.depends or []) (components.setup.exe-depends or []);
7777
};
78-
nixFilesDir = callProjectResults.projectNix + callProjectResults.src.origSubDir or "";
78+
nixFilesDir = callProjectResults.projectNix.outPath + callProjectResults.src.origSubDir or "";
7979
in {
8080
# This replaces the `plan-nix/default.nix`
8181
pkgs = (hackage: {

0 commit comments

Comments
 (0)