polkadot: format with nixfmt-rfc-style

This commit is contained in:
André Silva 2024-10-21 14:24:01 +01:00
parent 377d600fe1
commit 6f021cbe01
No known key found for this signature in database
GPG Key ID: 7C34FA12A023DC55

View File

@ -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
);
};
}