blockchains: format, cleanup

+35 -15
+35 -15
pkgs/applications/blockchains/bitcoin-classic.nix
··· 1 - { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost 2 - , zlib, miniupnpc, qtbase ? null, qttools ? null, util-linux, protobuf, qrencode, libevent 3 - , withGui }: 4 - 5 - with lib; 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , pkg-config 5 + , autoreconfHook 6 + , openssl 7 + , db48 8 + , boost 9 + , zlib 10 + , miniupnpc 11 + , qtbase ? null 12 + , qttools ? null 13 + , util-linux 14 + , protobuf 15 + , qrencode 16 + , libevent 17 + , withGui 18 + }: 6 19 7 20 stdenv.mkDerivation rec { 8 - 9 - name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version; 21 + pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic"; 10 22 version = "1.3.8uahf"; 11 23 12 24 src = fetchFromGitHub { ··· 17 29 }; 18 30 19 31 nativeBuildInputs = [ pkg-config autoreconfHook ]; 20 - buildInputs = [ openssl db48 boost zlib 21 - miniupnpc util-linux protobuf libevent ] 22 - ++ optionals withGui [ qtbase qttools qrencode ]; 32 + buildInputs = [ 33 + openssl 34 + db48 35 + boost 36 + zlib 37 + miniupnpc 38 + util-linux 39 + protobuf 40 + libevent 41 + ] ++ lib.optionals withGui [ qtbase qttools qrencode ]; 23 42 24 43 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] 25 - ++ optionals withGui [ "--with-gui=qt5" 26 - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 27 - ]; 44 + ++ lib.optionals withGui [ 45 + "--with-gui=qt5" 46 + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 47 + ]; 28 48 29 49 enableParallelBuilding = true; 30 50 31 51 dontWrapQtApps = true; 32 52 33 - meta = { 53 + meta = with lib; { 34 54 description = "Peer-to-peer electronic cash system (Classic client)"; 35 - longDescription= '' 55 + longDescription = '' 36 56 Bitcoin is a free open source peer-to-peer electronic cash system that is 37 57 completely decentralized, without the need for a central server or trusted 38 58 parties. Users hold the crypto keys to their own money and transact directly