From 41235bf9086c6b048549c7564679d748c35e0de3 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 5 Dec 2023 22:08:45 +0200 Subject: [PATCH] refactor(tvix): move src into let binding Change-Id: Ida2a3ac722fb2445745759323975884dfeef3e87 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10193 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: tazjin --- tvix/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tvix/default.nix b/tvix/default.nix index 30235b438..f6ab256ed 100644 --- a/tvix/default.nix +++ b/tvix/default.nix @@ -85,6 +85,10 @@ let "futures-util" ]); }; + + # The cleaned sources. + src = depot.third_party.gitignoreSource ./.; + in { inherit crates; @@ -117,9 +121,8 @@ in # Build the Rust documentation for publishing on docs.tvix.dev. rust-docs = pkgs.stdenv.mkDerivation { - inherit cargoDeps; + inherit cargoDeps src; name = "tvix-rust-docs"; - src = depot.third_party.gitignoreSource ./.; PROTO_ROOT = depot.tvix.proto; nativeBuildInputs = with pkgs; [ @@ -143,9 +146,8 @@ in # Run cargo clippy. We run it with -Dwarnings, so warnings cause a nonzero # exit code. clippy = pkgs.stdenv.mkDerivation { - inherit cargoDeps; + inherit cargoDeps src; name = "tvix-clippy"; - src = depot.third_party.gitignoreSource ./.; PROTO_ROOT = depot.tvix.proto; buildInputs = [