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"; }; }