From 0e8d59e3cbb11d1157761890e993d0725483be9d Mon Sep 17 00:00:00 2001 From: happysalada Date: Thu, 2 Sep 2021 14:35:23 +0900 Subject: [PATCH] default-crate-overrides: nixpkgs-fmt --- .../rust/default-crate-overrides.nix | 37 +++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/pkgs/build-support/rust/default-crate-overrides.nix b/pkgs/build-support/rust/default-crate-overrides.nix index eb58f72f5522..bed4fda092a9 100644 --- a/pkgs/build-support/rust/default-crate-overrides.nix +++ b/pkgs/build-support/rust/default-crate-overrides.nix @@ -1,7 +1,30 @@ -{ lib, stdenv, pkg-config, curl, darwin, libiconv, libgit2, libssh2, - openssl, sqlite, zlib, dbus, dbus-glib, gdk-pixbuf, cairo, python3, - libsodium, postgresql, gmp, foundationdb, capnproto, nettle, clang, - llvmPackages, linux-pam, ... }: +{ lib +, stdenv +, pkg-config +, curl +, darwin +, libiconv +, libgit2 +, libssh2 +, openssl +, sqlite +, zlib +, dbus +, dbus-glib +, gdk-pixbuf +, cairo +, python3 +, libsodium +, postgresql +, gmp +, foundationdb +, capnproto +, nettle +, clang +, llvmPackages +, linux-pam +, ... +}: let inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; @@ -23,14 +46,14 @@ in libz-sys = attrs: { nativeBuildInputs = [ pkg-config ]; buildInputs = [ zlib ]; - extraLinkFlags = ["-L${zlib.out}/lib"]; + extraLinkFlags = [ "-L${zlib.out}/lib" ]; }; curl-sys = attrs: { nativeBuildInputs = [ pkg-config ]; buildInputs = [ zlib curl ]; propagatedBuildInputs = [ curl zlib ]; - extraLinkFlags = ["-L${zlib.out}/lib"]; + extraLinkFlags = [ "-L${zlib.out}/lib" ]; }; dbus = attrs: { @@ -115,7 +138,7 @@ in rink = attrs: { buildInputs = [ gmp ]; - crateBin = [ { name = "rink"; path = "src/bin/rink.rs"; } ]; + crateBin = [{ name = "rink"; path = "src/bin/rink.rs"; }]; }; security-framework-sys = attr: {