refactor(tvix): move src into let binding

Change-Id: Ida2a3ac722fb2445745759323975884dfeef3e87
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10193
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2023-12-05 22:08:45 +02:00 committed by clbot
parent 88028d1269
commit 41235bf908

View file

@ -85,6 +85,10 @@ let
"futures-util" "futures-util"
]); ]);
}; };
# The cleaned sources.
src = depot.third_party.gitignoreSource ./.;
in in
{ {
inherit crates; inherit crates;
@ -117,9 +121,8 @@ in
# Build the Rust documentation for publishing on docs.tvix.dev. # Build the Rust documentation for publishing on docs.tvix.dev.
rust-docs = pkgs.stdenv.mkDerivation { rust-docs = pkgs.stdenv.mkDerivation {
inherit cargoDeps; inherit cargoDeps src;
name = "tvix-rust-docs"; name = "tvix-rust-docs";
src = depot.third_party.gitignoreSource ./.;
PROTO_ROOT = depot.tvix.proto; PROTO_ROOT = depot.tvix.proto;
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
@ -143,9 +146,8 @@ in
# Run cargo clippy. We run it with -Dwarnings, so warnings cause a nonzero # Run cargo clippy. We run it with -Dwarnings, so warnings cause a nonzero
# exit code. # exit code.
clippy = pkgs.stdenv.mkDerivation { clippy = pkgs.stdenv.mkDerivation {
inherit cargoDeps; inherit cargoDeps src;
name = "tvix-clippy"; name = "tvix-clippy";
src = depot.third_party.gitignoreSource ./.;
PROTO_ROOT = depot.tvix.proto; PROTO_ROOT = depot.tvix.proto;
buildInputs = [ buildInputs = [