diff --git a/pkgs/by-name/sc/sccache/package.nix b/pkgs/by-name/sc/sccache/package.nix index a84126411ace..5bec7dd7043b 100644 --- a/pkgs/by-name/sc/sccache/package.nix +++ b/pkgs/by-name/sc/sccache/package.nix @@ -4,6 +4,7 @@ rustPlatform, pkg-config, openssl, + distributed ? false, }: rustPlatform.buildRustPackage rec { @@ -19,6 +20,11 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-1kfKBN4uRbU5LjbC0cLgMqoGnOSEAdC0S7EzXlfaDPo="; + buildFeatures = lib.optionals distributed [ + "dist-client" + "dist-server" + ]; + nativeBuildInputs = [ pkg-config ];