lol

blockchains.bitcoin-abc: cleanup, format

+39 -13
+39 -13
pkgs/applications/blockchains/bitcoin-abc.nix
··· 1 - { lib, stdenv, mkDerivation, fetchFromGitHub, pkg-config, cmake, openssl, db53, boost 2 - , zlib, miniupnpc, qtbase ? null , qttools ? null, util-linux, protobuf, qrencode, libevent 3 - , withGui, python3, jemalloc, zeromq4 }: 4 - 5 - with lib; 1 + { lib 2 + , stdenv 3 + , mkDerivation 4 + , fetchFromGitHub 5 + , pkg-config 6 + , cmake 7 + , openssl 8 + , db53 9 + , boost 10 + , zlib 11 + , miniupnpc 12 + , qtbase ? null 13 + , qttools ? null 14 + , util-linux 15 + , protobuf 16 + , qrencode 17 + , libevent 18 + , withGui 19 + , python3 20 + , jemalloc 21 + , zeromq4 22 + }: 6 23 7 24 mkDerivation rec { 8 - 9 - name = "bitcoin" + (toString (optional (!withGui) "d")) + "-abc-" + version; 25 + pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-abc"; 10 26 version = "0.21.13"; 11 27 12 28 src = fetchFromGitHub { ··· 19 35 patches = [ ./fix-bitcoin-qt-build.patch ]; 20 36 21 37 nativeBuildInputs = [ pkg-config cmake ]; 22 - buildInputs = [ openssl db53 boost zlib python3 jemalloc zeromq4 23 - miniupnpc util-linux protobuf libevent ] 24 - ++ optionals withGui [ qtbase qttools qrencode ]; 38 + buildInputs = [ 39 + openssl 40 + db53 41 + boost 42 + zlib 43 + python3 44 + jemalloc 45 + zeromq4 46 + miniupnpc 47 + util-linux 48 + protobuf 49 + libevent 50 + ] ++ lib.optionals withGui [ qtbase qttools qrencode ]; 25 51 26 - cmakeFlags = optionals (!withGui) [ 52 + cmakeFlags = lib.optionals (!withGui) [ 27 53 "-DBUILD_BITCOIN_QT=OFF" 28 54 ]; 29 55 ··· 32 58 find ./. -type f -iname "*.sh" -exec chmod +x {} \; 33 59 ''; 34 60 35 - meta = { 61 + meta = with lib; { 36 62 description = "Peer-to-peer electronic cash system (Cash client)"; 37 - longDescription= '' 63 + longDescription = '' 38 64 Bitcoin ABC is the name of open source software which enables the use of Bitcoin. 39 65 It is designed to facilite a hard fork to increase Bitcoin's block size limit. 40 66 "ABC" stands for "Adjustable Blocksize Cap".