nix: drop sccache
Did not work. Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I09802cd4835347115ba51bdffd0af1096a6a6964
This commit is contained in:
parent
6900984e46
commit
e7e9ea6036
1 changed files with 0 additions and 20 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue