summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-27 15:24:40 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-28 09:50:20 +0200
commitabce989b6c9a5ce4fa2951e821978b84efd7d018 (patch)
tree581959c7c2f84eea322afea9f7a247d8a09bbf38 /pkgs
parent9f6f2ea74e70874c4a95e79990810bc34006515f (diff)
downloadnixpkgs-abce989b6c9a5ce4fa2951e821978b84efd7d018.tar
nixpkgs-abce989b6c9a5ce4fa2951e821978b84efd7d018.tar.gz
nixpkgs-abce989b6c9a5ce4fa2951e821978b84efd7d018.tar.bz2
nixpkgs-abce989b6c9a5ce4fa2951e821978b84efd7d018.tar.lz
nixpkgs-abce989b6c9a5ce4fa2951e821978b84efd7d018.tar.xz
nixpkgs-abce989b6c9a5ce4fa2951e821978b84efd7d018.tar.zst
nixpkgs-abce989b6c9a5ce4fa2951e821978b84efd7d018.zip
blockchains: format, cleanup
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/blockchains/bitcoin-classic.nix50
1 files changed, 35 insertions, 15 deletions
diff --git a/pkgs/applications/blockchains/bitcoin-classic.nix b/pkgs/applications/blockchains/bitcoin-classic.nix
index f578313323c..533e3c7dca6 100644
--- a/pkgs/applications/blockchains/bitcoin-classic.nix
+++ b/pkgs/applications/blockchains/bitcoin-classic.nix
@@ -1,12 +1,24 @@
-{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost
-, zlib, miniupnpc, qtbase ? null, qttools ? null, util-linux, protobuf, qrencode, libevent
-, withGui }:
-
-with lib;
+{ lib
+, stdenv
+, fetchFromGitHub
+, pkg-config
+, autoreconfHook
+, openssl
+, db48
+, boost
+, zlib
+, miniupnpc
+, qtbase ? null
+, qttools ? null
+, util-linux
+, protobuf
+, qrencode
+, libevent
+, withGui
+}:
 
 stdenv.mkDerivation rec {
-
-  name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version;
+  pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic";
   version = "1.3.8uahf";
 
   src = fetchFromGitHub {
@@ -17,22 +29,30 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ pkg-config autoreconfHook ];
-  buildInputs = [ openssl db48 boost zlib
-                  miniupnpc util-linux protobuf libevent ]
-                  ++ optionals withGui [ qtbase qttools qrencode ];
+  buildInputs = [
+    openssl
+    db48
+    boost
+    zlib
+    miniupnpc
+    util-linux
+    protobuf
+    libevent
+  ] ++ lib.optionals withGui [ qtbase qttools qrencode ];
 
   configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
-                     ++ optionals withGui [ "--with-gui=qt5"
-                                            "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
-                                          ];
+    ++ lib.optionals withGui [
+    "--with-gui=qt5"
+    "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
+  ];
 
   enableParallelBuilding = true;
 
   dontWrapQtApps = true;
 
-  meta = {
+  meta = with lib; {
     description = "Peer-to-peer electronic cash system (Classic client)";
-    longDescription= ''
+    longDescription = ''
       Bitcoin is a free open source peer-to-peer electronic cash system that is
       completely decentralized, without the need for a central server or trusted
       parties. Users hold the crypto keys to their own money and transact directly