From 2a0d3cc90764141a076995534a04be9f17e0c40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 7 Mar 2021 11:17:00 +0100 Subject: [PATCH 1/2] sccache: add sccache-dist target in build --- pkgs/development/tools/misc/sccache/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/sccache/default.nix b/pkgs/development/tools/misc/sccache/default.nix index c41ab92fb97..214db2ff012 100644 --- a/pkgs/development/tools/misc/sccache/default.nix +++ b/pkgs/development/tools/misc/sccache/default.nix @@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1cfdwf00jgwsv0f72427asid1xr57s56jk5xj489dgppvgy7wdbj"; - cargoBuildFlags = [ "--features=all" ]; + cargoBuildFlags = [ "--features=dist-client,dist-server" ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; From a094d0e0e4804dfa2a28eb81b4db683aee2d2604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Mon, 8 Mar 2021 08:00:18 +0100 Subject: [PATCH 2/2] sccache: change platforms to x86_64-linux Other platforms are not supported, see: https://github.com/mozilla/sccache/blob/master/src/bin/sccache-dist/main.rs#L70 --- pkgs/development/tools/misc/sccache/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/sccache/default.nix b/pkgs/development/tools/misc/sccache/default.nix index 214db2ff012..ccadaa8aeb4 100644 --- a/pkgs/development/tools/misc/sccache/default.nix +++ b/pkgs/development/tools/misc/sccache/default.nix @@ -27,6 +27,6 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/mozilla/sccache"; maintainers = with maintainers; [ doronbehar ]; license = licenses.asl20; - platforms = platforms.unix; + platforms = [ "x86_64-linux" ]; }; }