mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
disable ccacheWrapper
This commit is contained in:
parent
86ac4f081a
commit
1ac28fed45
2 changed files with 1 additions and 28 deletions
|
|
@ -1,25 +0,0 @@
|
||||||
(self: super: {
|
|
||||||
ccacheWrapper = super.ccacheWrapper.override {
|
|
||||||
extraConfig = ''
|
|
||||||
export CCACHE_COMPRESS=1
|
|
||||||
export CCACHE_DIR="/nix/var/cache/ccache"
|
|
||||||
export CCACHE_UMASK=007
|
|
||||||
if [ ! -d "$CCACHE_DIR" ]; then
|
|
||||||
echo "====="
|
|
||||||
echo "Directory '$CCACHE_DIR' does not exist"
|
|
||||||
echo "Please create it with:"
|
|
||||||
echo " sudo mkdir -m0770 '$CCACHE_DIR'"
|
|
||||||
echo " sudo chown root:nixbld '$CCACHE_DIR'"
|
|
||||||
echo "====="
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [ ! -w "$CCACHE_DIR" ]; then
|
|
||||||
echo "====="
|
|
||||||
echo "Directory '$CCACHE_DIR' is not accessible for user $(whoami)"
|
|
||||||
echo "Please verify its access permissions"
|
|
||||||
echo "====="
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
fenix.packages.${system}.stable.defaultToolchain
|
fenix.packages.${system}.stable.defaultToolchain
|
||||||
ccache
|
ccache
|
||||||
ccacheWrapper
|
|
||||||
deno
|
deno
|
||||||
fnm
|
fnm
|
||||||
go
|
go
|
||||||
|
|
@ -77,7 +76,7 @@
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
extra-platforms = ["x86_64-darwin" "aarch64-darwin"];
|
extra-platforms = ["x86_64-darwin" "aarch64-darwin"];
|
||||||
|
|
||||||
extra-sandbox-paths = ["/nix/var/cache/ccache"];
|
# extra-sandbox-paths = ["/nix/var/cache/ccache"];
|
||||||
|
|
||||||
extra-substituters = [
|
extra-substituters = [
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
|
|
@ -92,7 +91,6 @@
|
||||||
attic.overlays.default
|
attic.overlays.default
|
||||||
agenix.overlays.default
|
agenix.overlays.default
|
||||||
fenix.overlays.default
|
fenix.overlays.default
|
||||||
(import ./overlays/ccache-wrapper.nix)
|
|
||||||
(import ./overlays/gen-license.nix)
|
(import ./overlays/gen-license.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue