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"
]);
};
# 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 = [