From e551794bfe83c9140bfb94e6ac843e58a7b77718 Mon Sep 17 00:00:00 2001 From: Aleksei Sidorov Date: Wed, 20 Apr 2022 20:46:12 +0400 Subject: [PATCH] sccache: Fix sccache compilation on aarch64-linux platform sccache-dist is only supported on x86_64 Linux machines, see this comment: https://github.com/mozilla/sccache/blob/main/src/bin/sccache-dist/main.rs#L69 --- pkgs/development/tools/misc/sccache/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/sccache/default.nix b/pkgs/development/tools/misc/sccache/default.nix index d2833ce9da62..a8f7f63d0222 100644 --- a/pkgs/development/tools/misc/sccache/default.nix +++ b/pkgs/development/tools/misc/sccache/default.nix @@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; - buildFeatures = lib.optionals (!stdenv.isDarwin) [ "dist-client" "dist-server" ]; + # sccache-dist is only supported on x86_64 Linux machines. + buildFeatures = lib.optionals (stdenv.system == "x86_64-linux") [ "dist-client" "dist-server" ]; # Tests fail because of client server setup which is not possible inside the pure environment, # see https://github.com/mozilla/sccache/issues/460