From 7f0938ff9a14bfe248e93d9b42f8a2af22e6f037 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 11 Jan 2024 11:37:43 +0200 Subject: [PATCH] sccache: format expression --- .../tools/misc/sccache/default.nix | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/misc/sccache/default.nix b/pkgs/development/tools/misc/sccache/default.nix index 19247ca6effc..e814203cf5e4 100644 --- a/pkgs/development/tools/misc/sccache/default.nix +++ b/pkgs/development/tools/misc/sccache/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, stdenv, Security }: +{ lib +, fetchFromGitHub +, rustPlatform +, pkg-config +, openssl +, stdenv +, Security +}: rustPlatform.buildRustPackage rec { version = "0.7.5"; @@ -13,11 +20,17 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-VdI39DgQrUZhoawMqBC6ngTvldW+QbDjMjxjjbH9G1A="; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; + nativeBuildInputs = [ + pkg-config + ]; + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + Security + ]; - # Tests fail because of client server setup which is not possible inside the pure environment, - # see https://github.com/mozilla/sccache/issues/460 + # Tests fail because of client server setup which is not possible inside the + # pure environment, see https://github.com/mozilla/sccache/issues/460 doCheck = false; meta = with lib; {