From 2f85dfe50c1eb9622a1b409de95629bcced0992f Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 24 Jul 2020 21:30:42 -0400 Subject: fix(3p/nix): Don't include depotPath in the main drv Including depotPath in the shellHook of the main derivation for tvix was, unsurprisingly, causing spurious rebuilds. It's still useful when developing locally, though, so I've extracted it to a `build-shell` derivation as a passthru attribute and updated the documentation. Fixes: #20 Change-Id: Ibc686b9f06ec68e79759ca2c989414bd5fbce696 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1426 Reviewed-by: tazjin Tested-by: BuildkiteCI --- third_party/nix/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'third_party/nix/README.md') diff --git a/third_party/nix/README.md b/third_party/nix/README.md index 9e3d7486c87a..36ba7d0c2742 100644 --- a/third_party/nix/README.md +++ b/third_party/nix/README.md @@ -144,7 +144,7 @@ nix-shell. mkdir ~/build/tvix cd ~/build/tvix -nix-shell $DEPOT_PATH -A third_party.nix +nix-shell $DEPOT_PATH -A third_party.nix.build-shell # Disable clang-tidy for quicker builds cmake $DEPOT_PATH -DCLANG_TIDY_PATH="" -- cgit 1.4.1