nix: drop sccache

Did not work.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I09802cd4835347115ba51bdffd0af1096a6a6964
This commit is contained in:
raf 2026-03-22 23:57:30 +03:00
commit e7e9ea6036
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -50,26 +50,9 @@ in
# Other tools # Other tools
pkgs.taplo # TOML formatter pkgs.taplo # TOML formatter
pkgs.lldb # debugger pkgs.lldb # debugger
pkgs.sccache # distributed Rust cache
] ]
++ runtimeDeps; ++ 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 = { env = {
# Allow Cargo to use lld and clang properly # Allow Cargo to use lld and clang properly
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
@ -82,8 +65,5 @@ in
# Runtime library path for GTK/WebKit/xdotool # Runtime library path for GTK/WebKit/xdotool
LD_LIBRARY_PATH = "${lib.makeLibraryPath runtimeDeps}"; LD_LIBRARY_PATH = "${lib.makeLibraryPath runtimeDeps}";
# Enable sccache for local nix develop shell
SCCACHE_BIN = "${pkgs.sccache}/bin/sccache";
}; };
} }