summary refs log tree commit diff
diff options
context:
space:
mode:
authorhappysalada <raphael@megzari.com>2021-09-02 14:35:23 +0900
committerRaphael Megzari <raphael@megzari.com>2021-09-04 12:03:36 +0900
commit0e8d59e3cbb11d1157761890e993d0725483be9d (patch)
tree2e86553d44a7f65542551df6cd6dc6af0c010623
parent3584ad8d5754b74185be2c43c6eb24ea4db90fd8 (diff)
downloadnixpkgs-0e8d59e3cbb11d1157761890e993d0725483be9d.tar
nixpkgs-0e8d59e3cbb11d1157761890e993d0725483be9d.tar.gz
nixpkgs-0e8d59e3cbb11d1157761890e993d0725483be9d.tar.bz2
nixpkgs-0e8d59e3cbb11d1157761890e993d0725483be9d.tar.lz
nixpkgs-0e8d59e3cbb11d1157761890e993d0725483be9d.tar.xz
nixpkgs-0e8d59e3cbb11d1157761890e993d0725483be9d.tar.zst
nixpkgs-0e8d59e3cbb11d1157761890e993d0725483be9d.zip
default-crate-overrides: nixpkgs-fmt
-rw-r--r--pkgs/build-support/rust/default-crate-overrides.nix37
1 files 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 eb58f72f552..bed4fda092a 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: {