From 1ac28fed4569a1ca29415af81addddc464bad5d5 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Fri, 21 Jul 2023 17:38:46 +0800 Subject: [PATCH] disable ccacheWrapper --- overlays/ccache-wrapper.nix | 25 ------------------------- system.nix | 4 +--- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 overlays/ccache-wrapper.nix diff --git a/overlays/ccache-wrapper.nix b/overlays/ccache-wrapper.nix deleted file mode 100644 index 561dec2..0000000 --- a/overlays/ccache-wrapper.nix +++ /dev/null @@ -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 - ''; - }; -}) diff --git a/system.nix b/system.nix index 63c7913..40ea7a8 100644 --- a/system.nix +++ b/system.nix @@ -16,7 +16,6 @@ fenix.packages.${system}.stable.defaultToolchain ccache - ccacheWrapper deno fnm go @@ -77,7 +76,7 @@ auto-optimise-store = true; extra-platforms = ["x86_64-darwin" "aarch64-darwin"]; - extra-sandbox-paths = ["/nix/var/cache/ccache"]; + # extra-sandbox-paths = ["/nix/var/cache/ccache"]; extra-substituters = [ "https://nix-community.cachix.org" @@ -92,7 +91,6 @@ attic.overlays.default agenix.overlays.default fenix.overlays.default - (import ./overlays/ccache-wrapper.nix) (import ./overlays/gen-license.nix) ];