From e7e9ea6036b46993d3590b9fbab5f58e9c65a3f7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 22 Mar 2026 23:57:30 +0300 Subject: [PATCH] nix: drop sccache Did not work. Signed-off-by: NotAShelf Change-Id: I09802cd4835347115ba51bdffd0af1096a6a6964 --- nix/shell.nix | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/nix/shell.nix b/nix/shell.nix index 4eab514..a2a53c9 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -50,26 +50,9 @@ in # Other tools pkgs.taplo # TOML formatter pkgs.lldb # debugger - pkgs.sccache # distributed Rust cache ] ++ runtimeDeps; - # We could do this in the NixOS configuration via ~/.config/cargo.toml - # or something, but this is better because it lets everyone benefit - # from sccache while working with Pinakes. The reason those variables - # are not in 'env' are that we have to use Bash, which doesn't mix well - # with Nix strings. - shellHook = '' - if [ -n "$SCCACHE_BIN" ]; then - export RUSTC_WRAPPER="$SCCACHE_BIN" - export SCCACHE_DIR="''${HOME}/.cache/sccache" - export SCCACHE_CACHE_SIZE="50G" - mkdir -p "$SCCACHE_DIR" - - echo "sccache setup complete!" - fi - ''; - env = { # Allow Cargo to use lld and clang properly LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; @@ -82,8 +65,5 @@ in # Runtime library path for GTK/WebKit/xdotool LD_LIBRARY_PATH = "${lib.makeLibraryPath runtimeDeps}"; - - # Enable sccache for local nix develop shell - SCCACHE_BIN = "${pkgs.sccache}/bin/sccache"; }; }