From 12eeb30e1d959f7c7476c9657d2cb4867123db2b Mon Sep 17 00:00:00 2001 From: Mynacol Date: Thu, 2 Jul 2026 21:28:53 +0000 Subject: [PATCH] rusty-v8: remove not strictly needed dependencies --- pkgs/by-name/de/deno/rusty-v8/default.nix | 25 ++++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/de/deno/rusty-v8/default.nix b/pkgs/by-name/de/deno/rusty-v8/default.nix index b59c0a9beb5e..9f9edc1c7736 100644 --- a/pkgs/by-name/de/deno/rusty-v8/default.nix +++ b/pkgs/by-name/de/deno/rusty-v8/default.nix @@ -4,12 +4,9 @@ fetchpatch, rustPlatform, rustc, - rustc-unwrapped, rust-bindgen, - rust-analyzer, rustfmt, cargo, - clippy, llvmPackages ? rustc.llvmPackages, pkg-config, stdenv, @@ -30,20 +27,24 @@ let name = "rusty-v8-rust-toolchain"; paths = [ rustc - rustc-unwrapped rust-bindgen - rust-analyzer rustfmt cargo - clippy llvmPackages.libclang.lib + # To provide about the same tools as the upstream rust toolchain, the following inputs are also needed. + # But they are not actually needed, and to avoid unnecessary rebuilds, we are not adding them. + #rustc-unwrapped + #rust-analyzer + #clippy ]; - postBuild = '' - mkdir -p "$out/lib/rustlib/src/rust" - cp -r '${rustPlatform.rustcSrc}'/* "$out/lib/rustlib/src/rust/" - chmod u+w "$out/lib/rustlib/src/rust/library/" - ln -s '${rustPlatform.rustVendorSrc}' "$out/lib/rustlib/src/rust/library/vendor" - ''; + /* + postBuild = '' + mkdir -p "$out/lib/rustlib/src/rust" + cp -r '${rustPlatform.rustcSrc}'/* "$out/lib/rustlib/src/rust/" + chmod u+w "$out/lib/rustlib/src/rust/library/" + ln -s '${rustPlatform.rustVendorSrc}' "$out/lib/rustlib/src/rust/library/vendor" + ''; + */ }; clangBasePath = symlinkJoin {