From 6f021cbe0163fd40581e9b5542fd03f6350ccd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Mon, 21 Oct 2024 14:24:01 +0100 Subject: [PATCH] polkadot: format with nixfmt-rfc-style --- .../blockchains/polkadot/default.nix | 51 ++++++++++++------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/pkgs/applications/blockchains/polkadot/default.nix b/pkgs/applications/blockchains/polkadot/default.nix index 110e88bce123..89cac46971b0 100644 --- a/pkgs/applications/blockchains/polkadot/default.nix +++ b/pkgs/applications/blockchains/polkadot/default.nix @@ -1,15 +1,16 @@ -{ fetchFromGitHub -, lib -, openssl -, pkg-config -, protobuf -, rocksdb_8_3 -, rust-jemalloc-sys-unprefixed -, rustPlatform -, rustc -, stdenv -, Security -, SystemConfiguration +{ + fetchFromGitHub, + lib, + openssl, + pkg-config, + protobuf, + rocksdb_8_3, + rust-jemalloc-sys-unprefixed, + rustPlatform, + rustc, + stdenv, + Security, + SystemConfiguration, }: let @@ -53,7 +54,10 @@ rustPlatform.buildRustPackage rec { buildType = "production"; - cargoBuildFlags = [ "-p" "polkadot" ]; + cargoBuildFlags = [ + "-p" + "polkadot" + ]; # NOTE: tests currently fail to compile due to an issue with cargo-auditable # and resolution of features flags, potentially related to this: @@ -68,9 +72,13 @@ rustPlatform.buildRustPackage rec { ]; # NOTE: jemalloc is used by default on Linux with unprefixed enabled - buildInputs = [ openssl ] ++ - lib.optionals stdenv.hostPlatform.isLinux [ rust-jemalloc-sys-unprefixed ] ++ - lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ]; + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ rust-jemalloc-sys-unprefixed ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + Security + SystemConfiguration + ]; # NOTE: disable building `core`/`std` in wasm environment since rust-src isn't # available for `rustc-wasm32` @@ -84,8 +92,15 @@ rustPlatform.buildRustPackage rec { description = "Polkadot Node Implementation"; homepage = "https://polkadot.network"; license = licenses.gpl3Only; - maintainers = with maintainers; [ akru andresilva FlorianFranzen RaghavSood ]; + maintainers = with maintainers; [ + akru + andresilva + FlorianFranzen + RaghavSood + ]; # See Iso::from_arch in src/isa/mod.rs in cranelift-codegen-meta. - platforms = intersectLists platforms.unix (platforms.aarch64 ++ platforms.s390x ++ platforms.riscv64 ++ platforms.x86); + platforms = intersectLists platforms.unix ( + platforms.aarch64 ++ platforms.s390x ++ platforms.riscv64 ++ platforms.x86 + ); }; }