From 41724be4e6ef85b3f5cf0d1436be13ee59becdfa Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 26 Jul 2021 13:14:43 +0200 Subject: prometheus-influxdb-exporter: init at 0.8.0 --- pkgs/top-level/all-packages.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6be85174e28..b3a38eb2470 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20118,6 +20118,7 @@ in prometheus-fritzbox-exporter = callPackage ../servers/monitoring/prometheus/fritzbox-exporter.nix { }; prometheus-gitlab-ci-pipelines-exporter = callPackage ../servers/monitoring/prometheus/gitlab-ci-pipelines-exporter.nix { }; prometheus-haproxy-exporter = callPackage ../servers/monitoring/prometheus/haproxy-exporter.nix { }; + prometheus-influxdb-exporter = callPackage ../servers/monitoring/prometheus/influxdb-exporter.nix { }; prometheus-jitsi-exporter = callPackage ../servers/monitoring/prometheus/jitsi-exporter.nix { }; prometheus-jmx-httpserver = callPackage ../servers/monitoring/prometheus/jmx-httpserver.nix { }; prometheus-json-exporter = callPackage ../servers/monitoring/prometheus/json-exporter.nix { }; -- cgit 1.4.1 From ea34e42b6545f2d91f55856ccb48e263612744bc Mon Sep 17 00:00:00 2001 From: dan4ik <6057430gu@gmail.com> Date: Wed, 28 Jul 2021 12:46:44 +0700 Subject: coreshot: init at 4.2.0 --- pkgs/tools/misc/coreshot/default.nix | 32 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/misc/coreshot/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/tools/misc/coreshot/default.nix b/pkgs/tools/misc/coreshot/default.nix new file mode 100644 index 00000000000..bb2404b1ed5 --- /dev/null +++ b/pkgs/tools/misc/coreshot/default.nix @@ -0,0 +1,32 @@ +{ mkDerivation, lib, fetchFromGitLab, qtbase, qtx11extras, libcprime, cmake, ninja }: + +mkDerivation rec { + pname = "coreshot"; + version = "4.2.0"; + + src = fetchFromGitLab { + owner = "cubocore/coreapps"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-HKgGeuM3CKGXwnFwSw6a0AB0klZKY5YS9C4q2UT6TN8="; + }; + + nativeBuildInputs = [ + cmake + ninja + ]; + + buildInputs = [ + qtbase + qtx11extras + libcprime + ]; + + meta = with lib; { + description = "A screen capture utility from the C Suite"; + homepage = "https://gitlab.com/cubocore/coreapps/coreshot"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ dan4ik605743 ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5ab47db86f9..e49fd5dfa63 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3910,6 +3910,8 @@ in coregarage = libsForQt5.callPackage ../applications/misc/coregarage { }; + coreshot = libsForQt5.callPackage ../tools/misc/coreshot { }; + c14 = callPackage ../applications/networking/c14 { }; corehunt = libsForQt5.callPackage ../applications/misc/corehunt { }; -- cgit 1.4.1 From 06a2b9fa9522fb9b52f5dc569a44a3c99f6a6838 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Tue, 27 Jul 2021 15:31:23 +0200 Subject: pkgs/applications/blockchains: move packages into subdirs --- pkgs/applications/blockchains/bitcoin-abc.nix | 76 ------------ .../blockchains/bitcoin-abc/default.nix | 76 ++++++++++++ .../bitcoin-abc/fix-bitcoin-qt-build.patch | 15 +++ pkgs/applications/blockchains/bitcoin-classic.nix | 76 ------------ .../blockchains/bitcoin-classic/default.nix | 76 ++++++++++++ pkgs/applications/blockchains/bitcoin-gold.nix | 72 ------------ .../blockchains/bitcoin-gold/default.nix | 72 ++++++++++++ pkgs/applications/blockchains/bitcoin-knots.nix | 41 ------- .../blockchains/bitcoin-knots/default.nix | 41 +++++++ .../applications/blockchains/bitcoin-unlimited.nix | 66 ----------- .../blockchains/bitcoin-unlimited/default.nix | 66 +++++++++++ pkgs/applications/blockchains/bitcoin.nix | 106 ----------------- pkgs/applications/blockchains/bitcoin/default.nix | 106 +++++++++++++++++ pkgs/applications/blockchains/clightning.nix | 63 ---------- .../blockchains/clightning/default.nix | 63 ++++++++++ .../applications/blockchains/crypto-org-wallet.nix | 33 ------ .../blockchains/crypto-org-wallet/default.nix | 33 ++++++ pkgs/applications/blockchains/dashpay.nix | 44 ------- pkgs/applications/blockchains/dashpay/default.nix | 44 +++++++ pkgs/applications/blockchains/dcrd.nix | 26 ----- pkgs/applications/blockchains/dcrd/default.nix | 26 +++++ pkgs/applications/blockchains/dcrwallet.nix | 26 ----- .../applications/blockchains/dcrwallet/default.nix | 26 +++++ pkgs/applications/blockchains/dero.nix | 25 ---- pkgs/applications/blockchains/dero/default.nix | 25 ++++ pkgs/applications/blockchains/digibyte.nix | 69 ----------- pkgs/applications/blockchains/digibyte/default.nix | 69 +++++++++++ pkgs/applications/blockchains/dogecoin.nix | 41 ------- pkgs/applications/blockchains/dogecoin/default.nix | 41 +++++++ pkgs/applications/blockchains/eclair.nix | 38 ------ pkgs/applications/blockchains/eclair/default.nix | 38 ++++++ pkgs/applications/blockchains/electrs.nix | 30 ----- pkgs/applications/blockchains/electrs/default.nix | 30 +++++ pkgs/applications/blockchains/elements.nix | 86 -------------- pkgs/applications/blockchains/elements/default.nix | 86 ++++++++++++++ .../blockchains/fix-bitcoin-qt-build.patch | 15 --- pkgs/applications/blockchains/go-ethereum.nix | 60 ---------- .../blockchains/go-ethereum/default.nix | 60 ++++++++++ pkgs/applications/blockchains/litecoin.nix | 55 --------- pkgs/applications/blockchains/litecoin/default.nix | 55 +++++++++ pkgs/applications/blockchains/lnd.nix | 40 ------- pkgs/applications/blockchains/lnd/default.nix | 40 +++++++ pkgs/applications/blockchains/lndmanage.nix | 44 ------- .../applications/blockchains/lndmanage/default.nix | 44 +++++++ pkgs/applications/blockchains/masari.nix | 25 ---- pkgs/applications/blockchains/masari/default.nix | 25 ++++ pkgs/applications/blockchains/namecoin.nix | 48 -------- pkgs/applications/blockchains/namecoin/default.nix | 48 ++++++++ .../blockchains/particl-core/default.nix | 53 +++++++++ .../blockchains/particl/particl-core.nix | 53 --------- pkgs/applications/blockchains/pivx.nix | 59 ---------- pkgs/applications/blockchains/pivx/default.nix | 59 ++++++++++ pkgs/applications/blockchains/quorum.nix | 41 ------- pkgs/applications/blockchains/quorum/default.nix | 41 +++++++ pkgs/applications/blockchains/stellar-core.nix | 46 -------- .../blockchains/stellar-core/default.nix | 46 ++++++++ pkgs/applications/blockchains/sumokoin.nix | 33 ------ pkgs/applications/blockchains/sumokoin/default.nix | 33 ++++++ pkgs/applications/blockchains/tessera.nix | 26 ----- pkgs/applications/blockchains/tessera/default.nix | 26 +++++ pkgs/applications/blockchains/turbo-geth.nix | 30 ----- .../blockchains/turbo-geth/default.nix | 30 +++++ pkgs/applications/blockchains/vertcoin.nix | 69 ----------- pkgs/applications/blockchains/vertcoin/default.nix | 69 +++++++++++ pkgs/applications/blockchains/wownero.nix | 60 ---------- pkgs/applications/blockchains/wownero/default.nix | 60 ++++++++++ pkgs/top-level/all-packages.nix | 130 ++++++++++++++------- 67 files changed, 1707 insertions(+), 1667 deletions(-) delete mode 100644 pkgs/applications/blockchains/bitcoin-abc.nix create mode 100644 pkgs/applications/blockchains/bitcoin-abc/default.nix create mode 100644 pkgs/applications/blockchains/bitcoin-abc/fix-bitcoin-qt-build.patch delete mode 100644 pkgs/applications/blockchains/bitcoin-classic.nix create mode 100644 pkgs/applications/blockchains/bitcoin-classic/default.nix delete mode 100644 pkgs/applications/blockchains/bitcoin-gold.nix create mode 100644 pkgs/applications/blockchains/bitcoin-gold/default.nix delete mode 100644 pkgs/applications/blockchains/bitcoin-knots.nix create mode 100644 pkgs/applications/blockchains/bitcoin-knots/default.nix delete mode 100644 pkgs/applications/blockchains/bitcoin-unlimited.nix create mode 100644 pkgs/applications/blockchains/bitcoin-unlimited/default.nix delete mode 100644 pkgs/applications/blockchains/bitcoin.nix create mode 100644 pkgs/applications/blockchains/bitcoin/default.nix delete mode 100644 pkgs/applications/blockchains/clightning.nix create mode 100644 pkgs/applications/blockchains/clightning/default.nix delete mode 100644 pkgs/applications/blockchains/crypto-org-wallet.nix create mode 100644 pkgs/applications/blockchains/crypto-org-wallet/default.nix delete mode 100644 pkgs/applications/blockchains/dashpay.nix create mode 100644 pkgs/applications/blockchains/dashpay/default.nix delete mode 100644 pkgs/applications/blockchains/dcrd.nix create mode 100644 pkgs/applications/blockchains/dcrd/default.nix delete mode 100644 pkgs/applications/blockchains/dcrwallet.nix create mode 100644 pkgs/applications/blockchains/dcrwallet/default.nix delete mode 100644 pkgs/applications/blockchains/dero.nix create mode 100644 pkgs/applications/blockchains/dero/default.nix delete mode 100644 pkgs/applications/blockchains/digibyte.nix create mode 100644 pkgs/applications/blockchains/digibyte/default.nix delete mode 100644 pkgs/applications/blockchains/dogecoin.nix create mode 100644 pkgs/applications/blockchains/dogecoin/default.nix delete mode 100644 pkgs/applications/blockchains/eclair.nix create mode 100644 pkgs/applications/blockchains/eclair/default.nix delete mode 100644 pkgs/applications/blockchains/electrs.nix create mode 100644 pkgs/applications/blockchains/electrs/default.nix delete mode 100644 pkgs/applications/blockchains/elements.nix create mode 100644 pkgs/applications/blockchains/elements/default.nix delete mode 100644 pkgs/applications/blockchains/fix-bitcoin-qt-build.patch delete mode 100644 pkgs/applications/blockchains/go-ethereum.nix create mode 100644 pkgs/applications/blockchains/go-ethereum/default.nix delete mode 100644 pkgs/applications/blockchains/litecoin.nix create mode 100644 pkgs/applications/blockchains/litecoin/default.nix delete mode 100644 pkgs/applications/blockchains/lnd.nix create mode 100644 pkgs/applications/blockchains/lnd/default.nix delete mode 100644 pkgs/applications/blockchains/lndmanage.nix create mode 100644 pkgs/applications/blockchains/lndmanage/default.nix delete mode 100644 pkgs/applications/blockchains/masari.nix create mode 100644 pkgs/applications/blockchains/masari/default.nix delete mode 100644 pkgs/applications/blockchains/namecoin.nix create mode 100644 pkgs/applications/blockchains/namecoin/default.nix create mode 100644 pkgs/applications/blockchains/particl-core/default.nix delete mode 100644 pkgs/applications/blockchains/particl/particl-core.nix delete mode 100644 pkgs/applications/blockchains/pivx.nix create mode 100644 pkgs/applications/blockchains/pivx/default.nix delete mode 100644 pkgs/applications/blockchains/quorum.nix create mode 100644 pkgs/applications/blockchains/quorum/default.nix delete mode 100644 pkgs/applications/blockchains/stellar-core.nix create mode 100644 pkgs/applications/blockchains/stellar-core/default.nix delete mode 100644 pkgs/applications/blockchains/sumokoin.nix create mode 100644 pkgs/applications/blockchains/sumokoin/default.nix delete mode 100644 pkgs/applications/blockchains/tessera.nix create mode 100644 pkgs/applications/blockchains/tessera/default.nix delete mode 100644 pkgs/applications/blockchains/turbo-geth.nix create mode 100644 pkgs/applications/blockchains/turbo-geth/default.nix delete mode 100644 pkgs/applications/blockchains/vertcoin.nix create mode 100644 pkgs/applications/blockchains/vertcoin/default.nix delete mode 100644 pkgs/applications/blockchains/wownero.nix create mode 100644 pkgs/applications/blockchains/wownero/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/applications/blockchains/bitcoin-abc.nix b/pkgs/applications/blockchains/bitcoin-abc.nix deleted file mode 100644 index 6f1734bbc13..00000000000 --- a/pkgs/applications/blockchains/bitcoin-abc.nix +++ /dev/null @@ -1,76 +0,0 @@ -{ lib -, stdenv -, mkDerivation -, fetchFromGitHub -, pkg-config -, cmake -, openssl -, db53 -, boost -, zlib -, miniupnpc -, qtbase ? null -, qttools ? null -, util-linux -, protobuf -, qrencode -, libevent -, withGui -, python3 -, jemalloc -, zeromq4 -}: - -mkDerivation rec { - pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-abc"; - version = "0.21.13"; - - src = fetchFromGitHub { - owner = "bitcoin-ABC"; - repo = "bitcoin-abc"; - rev = "v${version}"; - sha256 = "1x8xcdi1vcskggk9bqkwr3ah4vi9b7sj2h8hf7spac6dvz8lmzav"; - }; - - patches = [ ./fix-bitcoin-qt-build.patch ]; - - nativeBuildInputs = [ pkg-config cmake ]; - buildInputs = [ - openssl - db53 - boost - zlib - python3 - jemalloc - zeromq4 - miniupnpc - util-linux - protobuf - libevent - ] ++ lib.optionals withGui [ qtbase qttools qrencode ]; - - cmakeFlags = lib.optionals (!withGui) [ - "-DBUILD_BITCOIN_QT=OFF" - ]; - - # many of the generated scripts lack execute permissions - postConfigure = '' - find ./. -type f -iname "*.sh" -exec chmod +x {} \; - ''; - - meta = with lib; { - description = "Peer-to-peer electronic cash system (Cash client)"; - longDescription = '' - Bitcoin ABC is the name of open source software which enables the use of Bitcoin. - It is designed to facilite a hard fork to increase Bitcoin's block size limit. - "ABC" stands for "Adjustable Blocksize Cap". - - Bitcoin ABC is a fork of the Bitcoin Core software project. - ''; - homepage = "https://bitcoinabc.org/"; - maintainers = with maintainers; [ lassulus ]; - license = licenses.mit; - broken = stdenv.isDarwin; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/blockchains/bitcoin-abc/default.nix b/pkgs/applications/blockchains/bitcoin-abc/default.nix new file mode 100644 index 00000000000..6f1734bbc13 --- /dev/null +++ b/pkgs/applications/blockchains/bitcoin-abc/default.nix @@ -0,0 +1,76 @@ +{ lib +, stdenv +, mkDerivation +, fetchFromGitHub +, pkg-config +, cmake +, openssl +, db53 +, boost +, zlib +, miniupnpc +, qtbase ? null +, qttools ? null +, util-linux +, protobuf +, qrencode +, libevent +, withGui +, python3 +, jemalloc +, zeromq4 +}: + +mkDerivation rec { + pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-abc"; + version = "0.21.13"; + + src = fetchFromGitHub { + owner = "bitcoin-ABC"; + repo = "bitcoin-abc"; + rev = "v${version}"; + sha256 = "1x8xcdi1vcskggk9bqkwr3ah4vi9b7sj2h8hf7spac6dvz8lmzav"; + }; + + patches = [ ./fix-bitcoin-qt-build.patch ]; + + nativeBuildInputs = [ pkg-config cmake ]; + buildInputs = [ + openssl + db53 + boost + zlib + python3 + jemalloc + zeromq4 + miniupnpc + util-linux + protobuf + libevent + ] ++ lib.optionals withGui [ qtbase qttools qrencode ]; + + cmakeFlags = lib.optionals (!withGui) [ + "-DBUILD_BITCOIN_QT=OFF" + ]; + + # many of the generated scripts lack execute permissions + postConfigure = '' + find ./. -type f -iname "*.sh" -exec chmod +x {} \; + ''; + + meta = with lib; { + description = "Peer-to-peer electronic cash system (Cash client)"; + longDescription = '' + Bitcoin ABC is the name of open source software which enables the use of Bitcoin. + It is designed to facilite a hard fork to increase Bitcoin's block size limit. + "ABC" stands for "Adjustable Blocksize Cap". + + Bitcoin ABC is a fork of the Bitcoin Core software project. + ''; + homepage = "https://bitcoinabc.org/"; + maintainers = with maintainers; [ lassulus ]; + license = licenses.mit; + broken = stdenv.isDarwin; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/blockchains/bitcoin-abc/fix-bitcoin-qt-build.patch b/pkgs/applications/blockchains/bitcoin-abc/fix-bitcoin-qt-build.patch new file mode 100644 index 00000000000..c49bbc43251 --- /dev/null +++ b/pkgs/applications/blockchains/bitcoin-abc/fix-bitcoin-qt-build.patch @@ -0,0 +1,15 @@ +--- bitcoin-abc-v0.15.0-src/build-aux/m4/bitcoin_qt.m4 1970-01-01 01:00:01.000000000 +0100 ++++ bitcoin-abc-v0.15.0-src.org/build-aux/m4/bitcoin_qt.m4 2017-09-27 23:38:44.748384197 +0100 +@@ -35,11 +35,7 @@ + dnl Output: $1 is set to the path of $2 if found. $2 are searched in order. + AC_DEFUN([BITCOIN_QT_PATH_PROGS],[ + BITCOIN_QT_CHECK([ +- if test "x$3" != x; then +- AC_PATH_PROGS($1,$2,,$3) +- else +- AC_PATH_PROGS($1,$2) +- fi ++ AC_PATH_PROGS($1,$2) + if test "x$$1" = x && test "x$4" != xyes; then + BITCOIN_QT_FAIL([$1 not found]) + fi diff --git a/pkgs/applications/blockchains/bitcoin-classic.nix b/pkgs/applications/blockchains/bitcoin-classic.nix deleted file mode 100644 index 533e3c7dca6..00000000000 --- a/pkgs/applications/blockchains/bitcoin-classic.nix +++ /dev/null @@ -1,76 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, pkg-config -, autoreconfHook -, openssl -, db48 -, boost -, zlib -, miniupnpc -, qtbase ? null -, qttools ? null -, util-linux -, protobuf -, qrencode -, libevent -, withGui -}: - -stdenv.mkDerivation rec { - pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic"; - version = "1.3.8uahf"; - - src = fetchFromGitHub { - owner = "bitcoinclassic"; - repo = "bitcoinclassic"; - rev = "v${version}"; - sha256 = "sha256-V1cOB5FLotGS5jup/aVaiDiyr/v2KJ2SLcIu/Hrjuwk="; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ - openssl - db48 - boost - zlib - miniupnpc - util-linux - protobuf - libevent - ] ++ lib.optionals withGui [ qtbase qttools qrencode ]; - - configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] - ++ lib.optionals withGui [ - "--with-gui=qt5" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - - enableParallelBuilding = true; - - dontWrapQtApps = true; - - meta = with lib; { - description = "Peer-to-peer electronic cash system (Classic client)"; - 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 - with each other, with the help of a P2P network to check for double-spending. - - Bitcoin Classic stands for the original Bitcoin as Satoshi described it, - "A Peer-to-Peer Electronic Cash System". We are writing the software that - miners and users say they want. We will make sure it solves their needs, help - them deploy it, and gracefully upgrade the bitcoin network's capacity - together. The data shows that Bitcoin can grow, on-chain, to welcome many - more users onto our coin in a safe and distributed manner. In the future we - will continue to release updates that are in line with Satoshi’s whitepaper & - vision, and are agreed upon by the community. - ''; - homepage = "https://bitcoinclassic.com/"; - maintainers = with maintainers; [ jefdaj ]; - license = licenses.mit; - broken = stdenv.isDarwin; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/blockchains/bitcoin-classic/default.nix b/pkgs/applications/blockchains/bitcoin-classic/default.nix new file mode 100644 index 00000000000..533e3c7dca6 --- /dev/null +++ b/pkgs/applications/blockchains/bitcoin-classic/default.nix @@ -0,0 +1,76 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, autoreconfHook +, openssl +, db48 +, boost +, zlib +, miniupnpc +, qtbase ? null +, qttools ? null +, util-linux +, protobuf +, qrencode +, libevent +, withGui +}: + +stdenv.mkDerivation rec { + pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic"; + version = "1.3.8uahf"; + + src = fetchFromGitHub { + owner = "bitcoinclassic"; + repo = "bitcoinclassic"; + rev = "v${version}"; + sha256 = "sha256-V1cOB5FLotGS5jup/aVaiDiyr/v2KJ2SLcIu/Hrjuwk="; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ + openssl + db48 + boost + zlib + miniupnpc + util-linux + protobuf + libevent + ] ++ lib.optionals withGui [ qtbase qttools qrencode ]; + + configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] + ++ lib.optionals withGui [ + "--with-gui=qt5" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + + enableParallelBuilding = true; + + dontWrapQtApps = true; + + meta = with lib; { + description = "Peer-to-peer electronic cash system (Classic client)"; + 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 + with each other, with the help of a P2P network to check for double-spending. + + Bitcoin Classic stands for the original Bitcoin as Satoshi described it, + "A Peer-to-Peer Electronic Cash System". We are writing the software that + miners and users say they want. We will make sure it solves their needs, help + them deploy it, and gracefully upgrade the bitcoin network's capacity + together. The data shows that Bitcoin can grow, on-chain, to welcome many + more users onto our coin in a safe and distributed manner. In the future we + will continue to release updates that are in line with Satoshi’s whitepaper & + vision, and are agreed upon by the community. + ''; + homepage = "https://bitcoinclassic.com/"; + maintainers = with maintainers; [ jefdaj ]; + license = licenses.mit; + broken = stdenv.isDarwin; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/blockchains/bitcoin-gold.nix b/pkgs/applications/blockchains/bitcoin-gold.nix deleted file mode 100644 index 5d6775f729a..00000000000 --- a/pkgs/applications/blockchains/bitcoin-gold.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ lib, stdenv -, fetchFromGitHub -, openssl -, boost -, libb2 -, libevent -, autoreconfHook -, db4 -, pkg-config -, protobuf -, hexdump -, zeromq -, libsodium -, withGui -, qtbase ? null -, qttools ? null -, wrapQtAppsHook ? null -}: - -with lib; - -stdenv.mkDerivation rec { - - pname = "bitcoin" + toString (optional (!withGui) "d") + "-gold"; - version = "0.17.3"; - - src = fetchFromGitHub { - owner = "BTCGPU"; - repo = "BTCGPU"; - rev = "v${version}"; - sha256 = "sha256-1tFoUNsCPJkHSmNRl5gE3n2EQD6RZSry1zIM5hiTzEI="; - }; - - nativeBuildInputs = [ - autoreconfHook - pkg-config - hexdump - ] ++ optionals withGui [ - wrapQtAppsHook - ]; - - buildInputs = [ - openssl - boost - libevent - db4 - zeromq - libsodium - libb2 - ] ++ optionals withGui [ - qtbase - qttools - protobuf - ]; - - enableParallelBuilding = true; - - configureFlags = [ - "--with-boost-libdir=${boost.out}/lib" - ] ++ optionals withGui [ - "--with-gui=qt5" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - - meta = { - description = "BTG is a cryptocurrency with Bitcoin fundamentals, mined on common GPUs instead of specialty ASICs"; - homepage = "https://bitcoingold.org/"; - license = licenses.mit; - maintainers = [ maintainers.mmahut ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/bitcoin-gold/default.nix b/pkgs/applications/blockchains/bitcoin-gold/default.nix new file mode 100644 index 00000000000..5d6775f729a --- /dev/null +++ b/pkgs/applications/blockchains/bitcoin-gold/default.nix @@ -0,0 +1,72 @@ +{ lib, stdenv +, fetchFromGitHub +, openssl +, boost +, libb2 +, libevent +, autoreconfHook +, db4 +, pkg-config +, protobuf +, hexdump +, zeromq +, libsodium +, withGui +, qtbase ? null +, qttools ? null +, wrapQtAppsHook ? null +}: + +with lib; + +stdenv.mkDerivation rec { + + pname = "bitcoin" + toString (optional (!withGui) "d") + "-gold"; + version = "0.17.3"; + + src = fetchFromGitHub { + owner = "BTCGPU"; + repo = "BTCGPU"; + rev = "v${version}"; + sha256 = "sha256-1tFoUNsCPJkHSmNRl5gE3n2EQD6RZSry1zIM5hiTzEI="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + hexdump + ] ++ optionals withGui [ + wrapQtAppsHook + ]; + + buildInputs = [ + openssl + boost + libevent + db4 + zeromq + libsodium + libb2 + ] ++ optionals withGui [ + qtbase + qttools + protobuf + ]; + + enableParallelBuilding = true; + + configureFlags = [ + "--with-boost-libdir=${boost.out}/lib" + ] ++ optionals withGui [ + "--with-gui=qt5" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + + meta = { + description = "BTG is a cryptocurrency with Bitcoin fundamentals, mined on common GPUs instead of specialty ASICs"; + homepage = "https://bitcoingold.org/"; + license = licenses.mit; + maintainers = [ maintainers.mmahut ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/bitcoin-knots.nix b/pkgs/applications/blockchains/bitcoin-knots.nix deleted file mode 100644 index eea836ac62d..00000000000 --- a/pkgs/applications/blockchains/bitcoin-knots.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ lib, stdenv -, fetchFromGitHub -, pkg-config -, autoreconfHook -, db5 -, openssl -, boost -, zlib -, miniupnpc -, libevent -, protobuf -, util-linux -}: - -stdenv.mkDerivation rec { - pname = "bitcoind-knots"; - version = "0.20.0"; - versionDate = "20200614"; - - src = fetchFromGitHub { - owner = "bitcoinknots"; - repo = "bitcoin"; - rev = "v${version}.knots${versionDate}"; - sha256 = "0c8k1154kcwz6q2803wx0zigvqaij1fi5akgfqlj3yl57jjw48jj"; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ openssl db5 openssl util-linux - protobuf boost zlib miniupnpc libevent ]; - - configureFlags = [ "--with-incompatible-bdb" - "--with-boost-libdir=${boost.out}/lib" ]; - - meta = with lib; { - description = "An enhanced Bitcoin node software"; - homepage = "https://bitcoinknots.org/"; - license = licenses.mit; - maintainers = [ maintainers.mmahut ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/bitcoin-knots/default.nix b/pkgs/applications/blockchains/bitcoin-knots/default.nix new file mode 100644 index 00000000000..eea836ac62d --- /dev/null +++ b/pkgs/applications/blockchains/bitcoin-knots/default.nix @@ -0,0 +1,41 @@ +{ lib, stdenv +, fetchFromGitHub +, pkg-config +, autoreconfHook +, db5 +, openssl +, boost +, zlib +, miniupnpc +, libevent +, protobuf +, util-linux +}: + +stdenv.mkDerivation rec { + pname = "bitcoind-knots"; + version = "0.20.0"; + versionDate = "20200614"; + + src = fetchFromGitHub { + owner = "bitcoinknots"; + repo = "bitcoin"; + rev = "v${version}.knots${versionDate}"; + sha256 = "0c8k1154kcwz6q2803wx0zigvqaij1fi5akgfqlj3yl57jjw48jj"; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ openssl db5 openssl util-linux + protobuf boost zlib miniupnpc libevent ]; + + configureFlags = [ "--with-incompatible-bdb" + "--with-boost-libdir=${boost.out}/lib" ]; + + meta = with lib; { + description = "An enhanced Bitcoin node software"; + homepage = "https://bitcoinknots.org/"; + license = licenses.mit; + maintainers = [ maintainers.mmahut ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/bitcoin-unlimited.nix b/pkgs/applications/blockchains/bitcoin-unlimited.nix deleted file mode 100644 index f1825b0cbda..00000000000 --- a/pkgs/applications/blockchains/bitcoin-unlimited.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost -, zlib, miniupnpc, util-linux, protobuf, qrencode, libevent, python3 -, withGui, wrapQtAppsHook ? null, qtbase ? null, qttools ? null -, Foundation, ApplicationServices, AppKit }: - -with lib; - -stdenv.mkDerivation rec { - name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version; - version = "1.9.1.1"; - - src = fetchFromGitHub { - owner = "bitcoinunlimited"; - repo = "bitcoinunlimited"; - rev = "BCHunlimited${version}"; - sha256 = "sha256-K15SI1F/xI4SkX4a41QHLn89YaHCgrlv+wcbkpwGKhI="; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook python3 ] - ++ optionals withGui [ wrapQtAppsHook qttools ]; - buildInputs = [ openssl db48 boost zlib - miniupnpc util-linux protobuf libevent ] - ++ optionals withGui [ qtbase qttools qrencode ] - ++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ]; - - configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] - ++ optionals withGui [ "--with-gui=qt5" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - enableParallelBuilding = true; - - meta = { - description = "Peer-to-peer electronic cash system (Unlimited client)"; - 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 - with each other, with the help of a P2P network to check for double-spending. - - The Bitcoin Unlimited (BU) project seeks to provide a voice to all - stakeholders in the Bitcoin ecosystem. - - Every node operator or miner can currently choose their own blocksize limit - by modifying their client. Bitcoin Unlimited makes the process easier by - providing a configurable option for the accepted and generated blocksize via - a GUI menu. Bitcoin Unlimited further provides a user-configurable failsafe - setting allowing you to accept a block larger than your maximum accepted - blocksize if it reaches a certain number of blocks deep in the chain. - - The Bitcoin Unlimited client is not a competitive block scaling proposal - like BIP-101, BIP-102, etc. Instead it tracks consensus. This means that it - tracks the blockchain that the hash power majority follows, irrespective of - blocksize, and signals its ability to accept larger blocks via protocol and - block versioning fields. - - If you support an increase in the blocksize limit by any means - or just - support Bitcoin conflict resolution as originally envisioned by its founder - - consider running a Bitcoin Unlimited client. - ''; - homepage = "https://www.bitcoinunlimited.info/"; - maintainers = with maintainers; [ DmitryTsygankov ]; - license = licenses.mit; - broken = stdenv.isDarwin; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/blockchains/bitcoin-unlimited/default.nix b/pkgs/applications/blockchains/bitcoin-unlimited/default.nix new file mode 100644 index 00000000000..f1825b0cbda --- /dev/null +++ b/pkgs/applications/blockchains/bitcoin-unlimited/default.nix @@ -0,0 +1,66 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost +, zlib, miniupnpc, util-linux, protobuf, qrencode, libevent, python3 +, withGui, wrapQtAppsHook ? null, qtbase ? null, qttools ? null +, Foundation, ApplicationServices, AppKit }: + +with lib; + +stdenv.mkDerivation rec { + name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version; + version = "1.9.1.1"; + + src = fetchFromGitHub { + owner = "bitcoinunlimited"; + repo = "bitcoinunlimited"; + rev = "BCHunlimited${version}"; + sha256 = "sha256-K15SI1F/xI4SkX4a41QHLn89YaHCgrlv+wcbkpwGKhI="; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook python3 ] + ++ optionals withGui [ wrapQtAppsHook qttools ]; + buildInputs = [ openssl db48 boost zlib + miniupnpc util-linux protobuf libevent ] + ++ optionals withGui [ qtbase qttools qrencode ] + ++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ]; + + configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] + ++ optionals withGui [ "--with-gui=qt5" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + enableParallelBuilding = true; + + meta = { + description = "Peer-to-peer electronic cash system (Unlimited client)"; + 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 + with each other, with the help of a P2P network to check for double-spending. + + The Bitcoin Unlimited (BU) project seeks to provide a voice to all + stakeholders in the Bitcoin ecosystem. + + Every node operator or miner can currently choose their own blocksize limit + by modifying their client. Bitcoin Unlimited makes the process easier by + providing a configurable option for the accepted and generated blocksize via + a GUI menu. Bitcoin Unlimited further provides a user-configurable failsafe + setting allowing you to accept a block larger than your maximum accepted + blocksize if it reaches a certain number of blocks deep in the chain. + + The Bitcoin Unlimited client is not a competitive block scaling proposal + like BIP-101, BIP-102, etc. Instead it tracks consensus. This means that it + tracks the blockchain that the hash power majority follows, irrespective of + blocksize, and signals its ability to accept larger blocks via protocol and + block versioning fields. + + If you support an increase in the blocksize limit by any means - or just + support Bitcoin conflict resolution as originally envisioned by its founder - + consider running a Bitcoin Unlimited client. + ''; + homepage = "https://www.bitcoinunlimited.info/"; + maintainers = with maintainers; [ DmitryTsygankov ]; + license = licenses.mit; + broken = stdenv.isDarwin; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/blockchains/bitcoin.nix b/pkgs/applications/blockchains/bitcoin.nix deleted file mode 100644 index 00727d294df..00000000000 --- a/pkgs/applications/blockchains/bitcoin.nix +++ /dev/null @@ -1,106 +0,0 @@ -{ lib -, stdenv -, fetchurl -, autoreconfHook -, pkg-config -, util-linux -, hexdump -, wrapQtAppsHook ? null -, boost -, libevent -, miniupnpc -, zeromq -, zlib -, db48 -, sqlite -, qrencode -, qtbase ? null -, qttools ? null -, python3 -, nixosTests -, withGui -, withWallet ? true -}: - -with lib; -let - version = "0.21.1"; - majorMinorVersion = versions.majorMinor version; - desktop = fetchurl { - url = "https://raw.githubusercontent.com/bitcoin-core/packaging/${majorMinorVersion}/debian/bitcoin-qt.desktop"; - sha256 = "0cpna0nxcd1dw3nnzli36nf9zj28d2g9jf5y0zl9j18lvanvniha"; - }; -in -stdenv.mkDerivation rec { - pname = if withGui then "bitcoin" else "bitcoind"; - inherit version; - - src = fetchurl { - urls = [ - "https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" - "https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" - ]; - sha256 = "caff23449220cf45753f312cefede53a9eac64000bb300797916526236b6a1e0"; - }; - - nativeBuildInputs = - [ autoreconfHook pkg-config ] - ++ optionals stdenv.isLinux [ util-linux ] - ++ optionals stdenv.isDarwin [ hexdump ] - ++ optionals withGui [ wrapQtAppsHook ]; - - buildInputs = [ boost libevent miniupnpc zeromq zlib ] - ++ optionals withWallet [ db48 sqlite ] - ++ optionals withGui [ qrencode qtbase qttools ]; - - postInstall = optional withGui '' - install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop - substituteInPlace $out/share/applications/bitcoin-qt.desktop --replace "Icon=bitcoin128" "Icon=bitcoin" - install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png - ''; - - configureFlags = [ - "--with-boost-libdir=${boost.out}/lib" - "--disable-bench" - ] ++ optionals (!doCheck) [ - "--disable-tests" - "--disable-gui-tests" - ] ++ optionals (!withWallet) [ - "--disable-wallet" - ] ++ optionals withGui [ - "--with-gui=qt5" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - - checkInputs = [ python3 ]; - - doCheck = true; - - checkFlags = - [ "LC_ALL=C.UTF-8" ] - # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. - # See also https://github.com/NixOS/nixpkgs/issues/24256 - ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; - - enableParallelBuilding = true; - - passthru.tests = { - smoke-test = nixosTests.bitcoind; - }; - - meta = { - description = "Peer-to-peer electronic cash system"; - 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 - with each other, with the help of a P2P network to check for double-spending. - ''; - homepage = "https://bitcoin.org/"; - downloadPage = "https://bitcoincore.org/bin/bitcoin-core-${version}/"; - changelog = "https://bitcoincore.org/en/releases/${version}/"; - maintainers = with maintainers; [ prusnak roconnor ]; - license = licenses.mit; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/blockchains/bitcoin/default.nix b/pkgs/applications/blockchains/bitcoin/default.nix new file mode 100644 index 00000000000..00727d294df --- /dev/null +++ b/pkgs/applications/blockchains/bitcoin/default.nix @@ -0,0 +1,106 @@ +{ lib +, stdenv +, fetchurl +, autoreconfHook +, pkg-config +, util-linux +, hexdump +, wrapQtAppsHook ? null +, boost +, libevent +, miniupnpc +, zeromq +, zlib +, db48 +, sqlite +, qrencode +, qtbase ? null +, qttools ? null +, python3 +, nixosTests +, withGui +, withWallet ? true +}: + +with lib; +let + version = "0.21.1"; + majorMinorVersion = versions.majorMinor version; + desktop = fetchurl { + url = "https://raw.githubusercontent.com/bitcoin-core/packaging/${majorMinorVersion}/debian/bitcoin-qt.desktop"; + sha256 = "0cpna0nxcd1dw3nnzli36nf9zj28d2g9jf5y0zl9j18lvanvniha"; + }; +in +stdenv.mkDerivation rec { + pname = if withGui then "bitcoin" else "bitcoind"; + inherit version; + + src = fetchurl { + urls = [ + "https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" + "https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" + ]; + sha256 = "caff23449220cf45753f312cefede53a9eac64000bb300797916526236b6a1e0"; + }; + + nativeBuildInputs = + [ autoreconfHook pkg-config ] + ++ optionals stdenv.isLinux [ util-linux ] + ++ optionals stdenv.isDarwin [ hexdump ] + ++ optionals withGui [ wrapQtAppsHook ]; + + buildInputs = [ boost libevent miniupnpc zeromq zlib ] + ++ optionals withWallet [ db48 sqlite ] + ++ optionals withGui [ qrencode qtbase qttools ]; + + postInstall = optional withGui '' + install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop + substituteInPlace $out/share/applications/bitcoin-qt.desktop --replace "Icon=bitcoin128" "Icon=bitcoin" + install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png + ''; + + configureFlags = [ + "--with-boost-libdir=${boost.out}/lib" + "--disable-bench" + ] ++ optionals (!doCheck) [ + "--disable-tests" + "--disable-gui-tests" + ] ++ optionals (!withWallet) [ + "--disable-wallet" + ] ++ optionals withGui [ + "--with-gui=qt5" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + + checkInputs = [ python3 ]; + + doCheck = true; + + checkFlags = + [ "LC_ALL=C.UTF-8" ] + # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. + # See also https://github.com/NixOS/nixpkgs/issues/24256 + ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; + + enableParallelBuilding = true; + + passthru.tests = { + smoke-test = nixosTests.bitcoind; + }; + + meta = { + description = "Peer-to-peer electronic cash system"; + 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 + with each other, with the help of a P2P network to check for double-spending. + ''; + homepage = "https://bitcoin.org/"; + downloadPage = "https://bitcoincore.org/bin/bitcoin-core-${version}/"; + changelog = "https://bitcoincore.org/en/releases/${version}/"; + maintainers = with maintainers; [ prusnak roconnor ]; + license = licenses.mit; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/blockchains/clightning.nix b/pkgs/applications/blockchains/clightning.nix deleted file mode 100644 index 44ed4d1541c..00000000000 --- a/pkgs/applications/blockchains/clightning.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ lib -, stdenv -, fetchurl -, autoconf -, automake -, autogen -, gettext -, libtool -, pkg-config -, unzip -, which -, gmp -, libsodium -, python3 -, sqlite -, zlib -}: -let - py3 = python3.withPackages (p: [ p.Mako ]); -in -stdenv.mkDerivation rec { - pname = "clightning"; - version = "0.10.0"; - - src = fetchurl { - url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip"; - sha256 = "5154e67780dddbf12f64c4b1994c3ee3834236f05b6462adf25e8a5f3fa407ea"; - }; - - nativeBuildInputs = [ autogen autoconf automake gettext libtool pkg-config py3 unzip which ]; - - buildInputs = [ gmp libsodium sqlite zlib ]; - - postPatch = '' - patchShebangs \ - tools/generate-wire.py \ - tools/update-mocks.sh \ - tools/mockup.sh \ - devtools/sql-rewrite.py - ''; - - configurePhase = '' - ./configure --prefix=$out --disable-developer --disable-valgrind - ''; - - makeFlags = [ "prefix=$(out) VERSION=v${version}" ]; - - enableParallelBuilding = true; - - meta = with lib; { - description = "A Bitcoin Lightning Network implementation in C"; - longDescription = '' - c-lightning is a standard compliant implementation of the Lightning - Network protocol. The Lightning Network is a scalability solution for - Bitcoin, enabling secure and instant transfer of funds between any two - parties for any amount. - ''; - homepage = "https://github.com/ElementsProject/lightning"; - maintainers = with maintainers; [ jb55 prusnak ]; - license = licenses.mit; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/clightning/default.nix b/pkgs/applications/blockchains/clightning/default.nix new file mode 100644 index 00000000000..44ed4d1541c --- /dev/null +++ b/pkgs/applications/blockchains/clightning/default.nix @@ -0,0 +1,63 @@ +{ lib +, stdenv +, fetchurl +, autoconf +, automake +, autogen +, gettext +, libtool +, pkg-config +, unzip +, which +, gmp +, libsodium +, python3 +, sqlite +, zlib +}: +let + py3 = python3.withPackages (p: [ p.Mako ]); +in +stdenv.mkDerivation rec { + pname = "clightning"; + version = "0.10.0"; + + src = fetchurl { + url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip"; + sha256 = "5154e67780dddbf12f64c4b1994c3ee3834236f05b6462adf25e8a5f3fa407ea"; + }; + + nativeBuildInputs = [ autogen autoconf automake gettext libtool pkg-config py3 unzip which ]; + + buildInputs = [ gmp libsodium sqlite zlib ]; + + postPatch = '' + patchShebangs \ + tools/generate-wire.py \ + tools/update-mocks.sh \ + tools/mockup.sh \ + devtools/sql-rewrite.py + ''; + + configurePhase = '' + ./configure --prefix=$out --disable-developer --disable-valgrind + ''; + + makeFlags = [ "prefix=$(out) VERSION=v${version}" ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "A Bitcoin Lightning Network implementation in C"; + longDescription = '' + c-lightning is a standard compliant implementation of the Lightning + Network protocol. The Lightning Network is a scalability solution for + Bitcoin, enabling secure and instant transfer of funds between any two + parties for any amount. + ''; + homepage = "https://github.com/ElementsProject/lightning"; + maintainers = with maintainers; [ jb55 prusnak ]; + license = licenses.mit; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/crypto-org-wallet.nix b/pkgs/applications/blockchains/crypto-org-wallet.nix deleted file mode 100644 index 7b0a895f4a1..00000000000 --- a/pkgs/applications/blockchains/crypto-org-wallet.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ lib, fetchurl, makeDesktopItem, appimageTools, imagemagick }: - -let - pname = "chain-desktop-wallet"; - version = "0.1.1"; - name = "${pname}-${version}"; - - src = fetchurl { - url = "https://github.com/crypto-com/${pname}/releases/download/v${version}/${name}-x86_64.AppImage"; - sha256 = "12076hf8dlz0hg1pb2ixwlslrh8gi6s1iawnvhnn6vz4jmjvq356"; - }; - - appimageContents = appimageTools.extractType2 { inherit name src; }; -in appimageTools.wrapType2 rec { - inherit name src; - - extraInstallCommands = '' - mv $out/bin/${name} $out/bin/${pname} - install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop - ${imagemagick}/bin/convert ${appimageContents}/${pname}.png -resize 512x512 ${pname}_512.png - install -m 444 -D ${pname}_512.png $out/share/icons/hicolor/512x512/apps/${pname}.png - substituteInPlace $out/share/applications/${pname}.desktop \ - --replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname} %U' - ''; - - meta = with lib; { - description = "Crypto.org Chain desktop wallet (Beta)"; - homepage = "https://github.com/crypto-com/chain-desktop-wallet"; - license = licenses.asl20; - maintainers = with maintainers; [ th0rgal ]; - platforms = [ "x86_64-linux" ]; - }; -} diff --git a/pkgs/applications/blockchains/crypto-org-wallet/default.nix b/pkgs/applications/blockchains/crypto-org-wallet/default.nix new file mode 100644 index 00000000000..7b0a895f4a1 --- /dev/null +++ b/pkgs/applications/blockchains/crypto-org-wallet/default.nix @@ -0,0 +1,33 @@ +{ lib, fetchurl, makeDesktopItem, appimageTools, imagemagick }: + +let + pname = "chain-desktop-wallet"; + version = "0.1.1"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://github.com/crypto-com/${pname}/releases/download/v${version}/${name}-x86_64.AppImage"; + sha256 = "12076hf8dlz0hg1pb2ixwlslrh8gi6s1iawnvhnn6vz4jmjvq356"; + }; + + appimageContents = appimageTools.extractType2 { inherit name src; }; +in appimageTools.wrapType2 rec { + inherit name src; + + extraInstallCommands = '' + mv $out/bin/${name} $out/bin/${pname} + install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop + ${imagemagick}/bin/convert ${appimageContents}/${pname}.png -resize 512x512 ${pname}_512.png + install -m 444 -D ${pname}_512.png $out/share/icons/hicolor/512x512/apps/${pname}.png + substituteInPlace $out/share/applications/${pname}.desktop \ + --replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname} %U' + ''; + + meta = with lib; { + description = "Crypto.org Chain desktop wallet (Beta)"; + homepage = "https://github.com/crypto-com/chain-desktop-wallet"; + license = licenses.asl20; + maintainers = with maintainers; [ th0rgal ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/applications/blockchains/dashpay.nix b/pkgs/applications/blockchains/dashpay.nix deleted file mode 100644 index ca1dd13e425..00000000000 --- a/pkgs/applications/blockchains/dashpay.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ fetchFromGitHub, lib, stdenv, pkg-config, autoreconfHook -, openssl, db48, boost, zlib, miniupnpc -, qrencode, glib, protobuf, yasm, libevent -, util-linux -, enable_Upnp ? false -, disable_Wallet ? false -, disable_Daemon ? false }: - -with lib; -stdenv.mkDerivation rec { - pname = "dashpay"; - version = "0.12.2.3"; - - src = fetchFromGitHub { - owner = "dashpay"; - repo= "dash"; - rev = "v${version}"; - sha256 = "0l1gcj2xf2bal9ph9y11x8yd28fd25f55f48xbm45bfw3ij7nbaa"; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ glib openssl db48 yasm boost zlib libevent - miniupnpc protobuf qrencode util-linux ]; - - - configureFlags = [ "--with-boost-libdir=${boost.out}/lib --with-gui=no" ] - ++ optional enable_Upnp "--enable-upnp-default" - ++ optional disable_Wallet "--disable-wallet" - ++ optional disable_Daemon "--disable-daemon" - ; - - meta = { - description = "A decentralized key/value registration and transfer system"; - longDescription = '' - Dash (DASH) is an open sourced, privacy-centric digital currency - with instant transactions. It allows you to keep your finances - private as you make transactions without waits, similar to cash. - ''; - homepage = "https://www.dash.org"; - maintainers = with maintainers; [ ]; - platforms = platforms.unix; - license = licenses.mit; - }; -} diff --git a/pkgs/applications/blockchains/dashpay/default.nix b/pkgs/applications/blockchains/dashpay/default.nix new file mode 100644 index 00000000000..ca1dd13e425 --- /dev/null +++ b/pkgs/applications/blockchains/dashpay/default.nix @@ -0,0 +1,44 @@ +{ fetchFromGitHub, lib, stdenv, pkg-config, autoreconfHook +, openssl, db48, boost, zlib, miniupnpc +, qrencode, glib, protobuf, yasm, libevent +, util-linux +, enable_Upnp ? false +, disable_Wallet ? false +, disable_Daemon ? false }: + +with lib; +stdenv.mkDerivation rec { + pname = "dashpay"; + version = "0.12.2.3"; + + src = fetchFromGitHub { + owner = "dashpay"; + repo= "dash"; + rev = "v${version}"; + sha256 = "0l1gcj2xf2bal9ph9y11x8yd28fd25f55f48xbm45bfw3ij7nbaa"; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ glib openssl db48 yasm boost zlib libevent + miniupnpc protobuf qrencode util-linux ]; + + + configureFlags = [ "--with-boost-libdir=${boost.out}/lib --with-gui=no" ] + ++ optional enable_Upnp "--enable-upnp-default" + ++ optional disable_Wallet "--disable-wallet" + ++ optional disable_Daemon "--disable-daemon" + ; + + meta = { + description = "A decentralized key/value registration and transfer system"; + longDescription = '' + Dash (DASH) is an open sourced, privacy-centric digital currency + with instant transactions. It allows you to keep your finances + private as you make transactions without waits, similar to cash. + ''; + homepage = "https://www.dash.org"; + maintainers = with maintainers; [ ]; + platforms = platforms.unix; + license = licenses.mit; + }; +} diff --git a/pkgs/applications/blockchains/dcrd.nix b/pkgs/applications/blockchains/dcrd.nix deleted file mode 100644 index e959eca48ae..00000000000 --- a/pkgs/applications/blockchains/dcrd.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ lib, buildGoModule, fetchFromGitHub }: - -buildGoModule rec { - pname = "dcrd"; - version = "1.5.2"; - - src = fetchFromGitHub { - owner = "decred"; - repo = "dcrd"; - rev = "refs/tags/release-v${version}"; - sha256 = "14pxajc8si90hnddilfm09kmljwxq6i6p53fk0g09jp000cbklkl"; - }; - - vendorSha256 = "03aw6mcvp1vr01ppxy673jf5hdryd5032cxndlkaiwg005mxp1dy"; - - doCheck = false; - - subPackages = [ "." "cmd/dcrctl" "cmd/promptsecret" ]; - - meta = { - homepage = "https://decred.org"; - description = "Decred daemon in Go (golang)"; - license = with lib.licenses; [ isc ]; - maintainers = with lib.maintainers; [ juaningan ]; - }; -} diff --git a/pkgs/applications/blockchains/dcrd/default.nix b/pkgs/applications/blockchains/dcrd/default.nix new file mode 100644 index 00000000000..e959eca48ae --- /dev/null +++ b/pkgs/applications/blockchains/dcrd/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "dcrd"; + version = "1.5.2"; + + src = fetchFromGitHub { + owner = "decred"; + repo = "dcrd"; + rev = "refs/tags/release-v${version}"; + sha256 = "14pxajc8si90hnddilfm09kmljwxq6i6p53fk0g09jp000cbklkl"; + }; + + vendorSha256 = "03aw6mcvp1vr01ppxy673jf5hdryd5032cxndlkaiwg005mxp1dy"; + + doCheck = false; + + subPackages = [ "." "cmd/dcrctl" "cmd/promptsecret" ]; + + meta = { + homepage = "https://decred.org"; + description = "Decred daemon in Go (golang)"; + license = with lib.licenses; [ isc ]; + maintainers = with lib.maintainers; [ juaningan ]; + }; +} diff --git a/pkgs/applications/blockchains/dcrwallet.nix b/pkgs/applications/blockchains/dcrwallet.nix deleted file mode 100644 index 2266a1e4c26..00000000000 --- a/pkgs/applications/blockchains/dcrwallet.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ lib, buildGoModule, fetchFromGitHub }: - -buildGoModule rec { - pname = "dcrwallet"; - version = "1.6.0"; - - src = fetchFromGitHub { - owner = "decred"; - repo = "dcrwallet"; - rev = "refs/tags/v${version}"; - sha256 = "sha256-WUfmv+laOwR/fc4osAFzPKqHQR+wOtSdLEsysICnuvg="; - }; - - vendorSha256 = "sha256-9IRNlULvARIZu6dWaKrvx6fiDJ80SBLINhK/9tW9k/0="; - - doCheck = false; - - subPackages = [ "." ]; - - meta = { - homepage = "https://decred.org"; - description = "A secure Decred wallet daemon written in Go (golang)"; - license = with lib.licenses; [ isc ]; - maintainers = with lib.maintainers; [ juaningan ]; - }; -} diff --git a/pkgs/applications/blockchains/dcrwallet/default.nix b/pkgs/applications/blockchains/dcrwallet/default.nix new file mode 100644 index 00000000000..2266a1e4c26 --- /dev/null +++ b/pkgs/applications/blockchains/dcrwallet/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "dcrwallet"; + version = "1.6.0"; + + src = fetchFromGitHub { + owner = "decred"; + repo = "dcrwallet"; + rev = "refs/tags/v${version}"; + sha256 = "sha256-WUfmv+laOwR/fc4osAFzPKqHQR+wOtSdLEsysICnuvg="; + }; + + vendorSha256 = "sha256-9IRNlULvARIZu6dWaKrvx6fiDJ80SBLINhK/9tW9k/0="; + + doCheck = false; + + subPackages = [ "." ]; + + meta = { + homepage = "https://decred.org"; + description = "A secure Decred wallet daemon written in Go (golang)"; + license = with lib.licenses; [ isc ]; + maintainers = with lib.maintainers; [ juaningan ]; + }; +} diff --git a/pkgs/applications/blockchains/dero.nix b/pkgs/applications/blockchains/dero.nix deleted file mode 100644 index 6b15cbd0a16..00000000000 --- a/pkgs/applications/blockchains/dero.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, unbound, openssl, boost -, lmdb, miniupnpc, readline }: - -stdenv.mkDerivation rec { - pname = "dero"; - version = "0.11.7"; - - src = fetchFromGitHub { - owner = "deroproject"; - repo = "dero"; - rev = "v${version}"; - sha256 = "1v8b9wbmqbpyf4jpc0v276qzk3hc5fpddcmwvv5k5yfi30nmbh5c"; - }; - - nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ boost miniupnpc openssl lmdb unbound readline ]; - - meta = with lib; { - description = "Secure, private blockchain with smart contracts based on Monero"; - homepage = "https://dero.io/"; - license = licenses.bsd3; - maintainers = with maintainers; [ fpletz ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/dero/default.nix b/pkgs/applications/blockchains/dero/default.nix new file mode 100644 index 00000000000..6b15cbd0a16 --- /dev/null +++ b/pkgs/applications/blockchains/dero/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, unbound, openssl, boost +, lmdb, miniupnpc, readline }: + +stdenv.mkDerivation rec { + pname = "dero"; + version = "0.11.7"; + + src = fetchFromGitHub { + owner = "deroproject"; + repo = "dero"; + rev = "v${version}"; + sha256 = "1v8b9wbmqbpyf4jpc0v276qzk3hc5fpddcmwvv5k5yfi30nmbh5c"; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ boost miniupnpc openssl lmdb unbound readline ]; + + meta = with lib; { + description = "Secure, private blockchain with smart contracts based on Monero"; + homepage = "https://dero.io/"; + license = licenses.bsd3; + maintainers = with maintainers; [ fpletz ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/digibyte.nix b/pkgs/applications/blockchains/digibyte.nix deleted file mode 100644 index acf0b355e64..00000000000 --- a/pkgs/applications/blockchains/digibyte.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ lib, stdenv -, fetchFromGitHub -, openssl -, boost -, libevent -, autoreconfHook -, db4 -, pkg-config -, protobuf -, hexdump -, zeromq -, withGui -, qtbase ? null -, qttools ? null -, wrapQtAppsHook ? null -}: - -with lib; - -stdenv.mkDerivation rec { - pname = "digibyte"; - version = "7.17.2"; - - name = pname + toString (optional (!withGui) "d") + "-" + version; - - src = fetchFromGitHub { - owner = pname; - repo = pname; - rev = "v${version}"; - sha256 = "04czj7mx3wpbx4832npk686p9pg5zb6qwlcvnmvqf31hm5qylbxj"; - }; - - nativeBuildInputs = [ - autoreconfHook - pkg-config - hexdump - ] ++ optionals withGui [ - wrapQtAppsHook - ]; - - buildInputs = [ - openssl - boost - libevent - db4 - zeromq - ] ++ optionals withGui [ - qtbase - qttools - protobuf - ]; - - enableParallelBuilding = true; - - configureFlags = [ - "--with-boost-libdir=${boost.out}/lib" - ] ++ optionals withGui [ - "--with-gui=qt5" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - - meta = { - description = "DigiByte (DGB) is a rapidly growing decentralized, global blockchain"; - homepage = "https://digibyte.io/"; - license = licenses.mit; - maintainers = [ maintainers.mmahut ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/digibyte/default.nix b/pkgs/applications/blockchains/digibyte/default.nix new file mode 100644 index 00000000000..acf0b355e64 --- /dev/null +++ b/pkgs/applications/blockchains/digibyte/default.nix @@ -0,0 +1,69 @@ +{ lib, stdenv +, fetchFromGitHub +, openssl +, boost +, libevent +, autoreconfHook +, db4 +, pkg-config +, protobuf +, hexdump +, zeromq +, withGui +, qtbase ? null +, qttools ? null +, wrapQtAppsHook ? null +}: + +with lib; + +stdenv.mkDerivation rec { + pname = "digibyte"; + version = "7.17.2"; + + name = pname + toString (optional (!withGui) "d") + "-" + version; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "04czj7mx3wpbx4832npk686p9pg5zb6qwlcvnmvqf31hm5qylbxj"; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + hexdump + ] ++ optionals withGui [ + wrapQtAppsHook + ]; + + buildInputs = [ + openssl + boost + libevent + db4 + zeromq + ] ++ optionals withGui [ + qtbase + qttools + protobuf + ]; + + enableParallelBuilding = true; + + configureFlags = [ + "--with-boost-libdir=${boost.out}/lib" + ] ++ optionals withGui [ + "--with-gui=qt5" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + + meta = { + description = "DigiByte (DGB) is a rapidly growing decentralized, global blockchain"; + homepage = "https://digibyte.io/"; + license = licenses.mit; + maintainers = [ maintainers.mmahut ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/dogecoin.nix b/pkgs/applications/blockchains/dogecoin.nix deleted file mode 100644 index 9985113b08a..00000000000 --- a/pkgs/applications/blockchains/dogecoin.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ lib, stdenv , fetchFromGitHub -, pkg-config, autoreconfHook -, db5, openssl, boost, zlib, miniupnpc, libevent -, protobuf, util-linux, qt4, qrencode -, withGui }: - -with lib; -stdenv.mkDerivation rec { - name = "dogecoin" + (toString (optional (!withGui) "d")) + "-" + version; - version = "1.14.3"; - - src = fetchFromGitHub { - owner = "dogecoin"; - repo = "dogecoin"; - rev = "v${version}"; - sha256 = "sha256-kozUnIislQDtgjeesYHKu4sB1j9juqaWvyax+Lb/0pc="; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ openssl db5 openssl util-linux - protobuf boost zlib miniupnpc libevent ] - ++ optionals withGui [ qt4 qrencode ]; - - configureFlags = [ "--with-incompatible-bdb" - "--with-boost-libdir=${boost.out}/lib" ] - ++ optionals withGui [ "--with-gui" ]; - - meta = { - description = "Wow, such coin, much shiba, very rich"; - longDescription = '' - Dogecoin is a decentralized, peer-to-peer digital currency that - enables you to easily send money online. Think of it as "the - internet currency." - It is named after a famous Internet meme, the "Doge" - a Shiba Inu dog. - ''; - homepage = "http://www.dogecoin.com/"; - license = licenses.mit; - maintainers = with maintainers; [ edwtjo offline ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/dogecoin/default.nix b/pkgs/applications/blockchains/dogecoin/default.nix new file mode 100644 index 00000000000..9985113b08a --- /dev/null +++ b/pkgs/applications/blockchains/dogecoin/default.nix @@ -0,0 +1,41 @@ +{ lib, stdenv , fetchFromGitHub +, pkg-config, autoreconfHook +, db5, openssl, boost, zlib, miniupnpc, libevent +, protobuf, util-linux, qt4, qrencode +, withGui }: + +with lib; +stdenv.mkDerivation rec { + name = "dogecoin" + (toString (optional (!withGui) "d")) + "-" + version; + version = "1.14.3"; + + src = fetchFromGitHub { + owner = "dogecoin"; + repo = "dogecoin"; + rev = "v${version}"; + sha256 = "sha256-kozUnIislQDtgjeesYHKu4sB1j9juqaWvyax+Lb/0pc="; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ openssl db5 openssl util-linux + protobuf boost zlib miniupnpc libevent ] + ++ optionals withGui [ qt4 qrencode ]; + + configureFlags = [ "--with-incompatible-bdb" + "--with-boost-libdir=${boost.out}/lib" ] + ++ optionals withGui [ "--with-gui" ]; + + meta = { + description = "Wow, such coin, much shiba, very rich"; + longDescription = '' + Dogecoin is a decentralized, peer-to-peer digital currency that + enables you to easily send money online. Think of it as "the + internet currency." + It is named after a famous Internet meme, the "Doge" - a Shiba Inu dog. + ''; + homepage = "http://www.dogecoin.com/"; + license = licenses.mit; + maintainers = with maintainers; [ edwtjo offline ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/eclair.nix b/pkgs/applications/blockchains/eclair.nix deleted file mode 100644 index 7b74512a388..00000000000 --- a/pkgs/applications/blockchains/eclair.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ lib -, stdenv -, fetchzip -, jq -, openjdk11 -}: - -stdenv.mkDerivation rec { - pname = "eclair"; - version = "0.6.1"; - revision = "d3ae323"; - - src = fetchzip { - url = "https://github.com/ACINQ/eclair/releases/download/v${version}/eclair-node-${version}-${revision}-bin.zip"; - sha256 = "0hmdssj6pxhvadrgr1svb2lh7hfbd2axr5wsl7glizv1a21g0l2c"; - }; - - propagatedBuildInputs = [ jq openjdk11 ]; - - installPhase = '' - runHook preInstall - - mkdir $out - cp -a * $out - mv $out/bin/eclair-node.sh $out/bin/eclair-node - rm $out/bin/eclair-node.bat - - runHook postInstall - ''; - - meta = with lib; { - description = "A scala implementation of the Lightning Network"; - homepage = "https://github.com/ACINQ/eclair"; - license = licenses.asl20; - maintainers = with maintainers; [ prusnak ]; - platforms = [ "x86_64-linux" "x86_64-darwin" ]; - }; -} diff --git a/pkgs/applications/blockchains/eclair/default.nix b/pkgs/applications/blockchains/eclair/default.nix new file mode 100644 index 00000000000..7b74512a388 --- /dev/null +++ b/pkgs/applications/blockchains/eclair/default.nix @@ -0,0 +1,38 @@ +{ lib +, stdenv +, fetchzip +, jq +, openjdk11 +}: + +stdenv.mkDerivation rec { + pname = "eclair"; + version = "0.6.1"; + revision = "d3ae323"; + + src = fetchzip { + url = "https://github.com/ACINQ/eclair/releases/download/v${version}/eclair-node-${version}-${revision}-bin.zip"; + sha256 = "0hmdssj6pxhvadrgr1svb2lh7hfbd2axr5wsl7glizv1a21g0l2c"; + }; + + propagatedBuildInputs = [ jq openjdk11 ]; + + installPhase = '' + runHook preInstall + + mkdir $out + cp -a * $out + mv $out/bin/eclair-node.sh $out/bin/eclair-node + rm $out/bin/eclair-node.bat + + runHook postInstall + ''; + + meta = with lib; { + description = "A scala implementation of the Lightning Network"; + homepage = "https://github.com/ACINQ/eclair"; + license = licenses.asl20; + maintainers = with maintainers; [ prusnak ]; + platforms = [ "x86_64-linux" "x86_64-darwin" ]; + }; +} diff --git a/pkgs/applications/blockchains/electrs.nix b/pkgs/applications/blockchains/electrs.nix deleted file mode 100644 index cf2f4d3d47e..00000000000 --- a/pkgs/applications/blockchains/electrs.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, llvmPackages -}: - -rustPlatform.buildRustPackage rec { - pname = "electrs"; - version = "0.8.10"; - - src = fetchFromGitHub { - owner = "romanz"; - repo = pname; - rev = "v${version}"; - sha256 = "0q7mvpflnzzm88jbsdxgvhk9jr5mvn23hhj2iwy2grnfngxsmz3y"; - }; - - # needed for librocksdb-sys - nativeBuildInputs = [ llvmPackages.clang ]; - LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; - - cargoSha256 = "0i8npa840g4kz50n6x40z22x9apq8snw6xgjz4vn2kh67xc4c738"; - - meta = with lib; { - description = "An efficient re-implementation of Electrum Server in Rust"; - homepage = "https://github.com/romanz/electrs"; - license = licenses.mit; - maintainers = with maintainers; [ prusnak ]; - }; -} diff --git a/pkgs/applications/blockchains/electrs/default.nix b/pkgs/applications/blockchains/electrs/default.nix new file mode 100644 index 00000000000..cf2f4d3d47e --- /dev/null +++ b/pkgs/applications/blockchains/electrs/default.nix @@ -0,0 +1,30 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, llvmPackages +}: + +rustPlatform.buildRustPackage rec { + pname = "electrs"; + version = "0.8.10"; + + src = fetchFromGitHub { + owner = "romanz"; + repo = pname; + rev = "v${version}"; + sha256 = "0q7mvpflnzzm88jbsdxgvhk9jr5mvn23hhj2iwy2grnfngxsmz3y"; + }; + + # needed for librocksdb-sys + nativeBuildInputs = [ llvmPackages.clang ]; + LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; + + cargoSha256 = "0i8npa840g4kz50n6x40z22x9apq8snw6xgjz4vn2kh67xc4c738"; + + meta = with lib; { + description = "An efficient re-implementation of Electrum Server in Rust"; + homepage = "https://github.com/romanz/electrs"; + license = licenses.mit; + maintainers = with maintainers; [ prusnak ]; + }; +} diff --git a/pkgs/applications/blockchains/elements.nix b/pkgs/applications/blockchains/elements.nix deleted file mode 100644 index c44f2078dae..00000000000 --- a/pkgs/applications/blockchains/elements.nix +++ /dev/null @@ -1,86 +0,0 @@ -{ lib -, stdenv -, fetchurl -, autoreconfHook -, pkg-config -, util-linux -, hexdump -, wrapQtAppsHook ? null -, boost -, libevent -, miniupnpc -, zeromq -, zlib -, db48 -, sqlite -, qrencode -, qtbase ? null -, qttools ? null -, python3 -, openssl -, withGui -, withWallet ? true -}: - -with lib; -stdenv.mkDerivation rec { - pname = if withGui then "elements" else "elementsd"; - version = "0.18.1.12"; - - src = fetchurl { - url = "https://github.com/ElementsProject/elements/archive/elements-${version}.tar.gz"; - sha256 = "84a51013596b09c62913649ac90373622185f779446ee7e65b4b258a2876609f"; - }; - - nativeBuildInputs = - [ autoreconfHook pkg-config ] - ++ optionals stdenv.isLinux [ util-linux ] - ++ optionals stdenv.isDarwin [ hexdump ] - ++ optionals withGui [ wrapQtAppsHook ]; - - buildInputs = [ boost libevent miniupnpc zeromq zlib openssl ] - ++ optionals withWallet [ db48 sqlite ] - ++ optionals withGui [ qrencode qtbase qttools ]; - - configureFlags = [ - "--with-boost-libdir=${boost.out}/lib" - "--disable-bench" - ] ++ optionals (!doCheck) [ - "--disable-tests" - "--disable-gui-tests" - ] ++ optionals (!withWallet) [ - "--disable-wallet" - ] ++ optionals withGui [ - "--with-gui=qt5" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - - checkInputs = [ python3 ]; - - doCheck = true; - - checkFlags = - [ "LC_ALL=C.UTF-8" ] - # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. - # See also https://github.com/NixOS/nixpkgs/issues/24256 - ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; - - enableParallelBuilding = true; - - meta = { - description = "Open Source implementation of advanced blockchain features extending the Bitcoin protocol"; - longDescription= '' - The Elements blockchain platform is a collection of feature experiments and extensions to the - Bitcoin protocol. This platform enables anyone to build their own businesses or networks - pegged to Bitcoin as a sidechain or run as a standalone blockchain with arbitrary asset - tokens. - ''; - homepage = "https://www.github.com/ElementsProject/elements"; - maintainers = with maintainers; [ prusnak ]; - license = licenses.mit; - platforms = platforms.unix; - # Qt GUI is currently broken in upstream - # No rule to make target 'qt/res/rendered_icons/about.png', needed by 'qt/qrc_bitcoin.cpp'. - broken = withGui; - }; -} diff --git a/pkgs/applications/blockchains/elements/default.nix b/pkgs/applications/blockchains/elements/default.nix new file mode 100644 index 00000000000..c44f2078dae --- /dev/null +++ b/pkgs/applications/blockchains/elements/default.nix @@ -0,0 +1,86 @@ +{ lib +, stdenv +, fetchurl +, autoreconfHook +, pkg-config +, util-linux +, hexdump +, wrapQtAppsHook ? null +, boost +, libevent +, miniupnpc +, zeromq +, zlib +, db48 +, sqlite +, qrencode +, qtbase ? null +, qttools ? null +, python3 +, openssl +, withGui +, withWallet ? true +}: + +with lib; +stdenv.mkDerivation rec { + pname = if withGui then "elements" else "elementsd"; + version = "0.18.1.12"; + + src = fetchurl { + url = "https://github.com/ElementsProject/elements/archive/elements-${version}.tar.gz"; + sha256 = "84a51013596b09c62913649ac90373622185f779446ee7e65b4b258a2876609f"; + }; + + nativeBuildInputs = + [ autoreconfHook pkg-config ] + ++ optionals stdenv.isLinux [ util-linux ] + ++ optionals stdenv.isDarwin [ hexdump ] + ++ optionals withGui [ wrapQtAppsHook ]; + + buildInputs = [ boost libevent miniupnpc zeromq zlib openssl ] + ++ optionals withWallet [ db48 sqlite ] + ++ optionals withGui [ qrencode qtbase qttools ]; + + configureFlags = [ + "--with-boost-libdir=${boost.out}/lib" + "--disable-bench" + ] ++ optionals (!doCheck) [ + "--disable-tests" + "--disable-gui-tests" + ] ++ optionals (!withWallet) [ + "--disable-wallet" + ] ++ optionals withGui [ + "--with-gui=qt5" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + + checkInputs = [ python3 ]; + + doCheck = true; + + checkFlags = + [ "LC_ALL=C.UTF-8" ] + # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. + # See also https://github.com/NixOS/nixpkgs/issues/24256 + ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; + + enableParallelBuilding = true; + + meta = { + description = "Open Source implementation of advanced blockchain features extending the Bitcoin protocol"; + longDescription= '' + The Elements blockchain platform is a collection of feature experiments and extensions to the + Bitcoin protocol. This platform enables anyone to build their own businesses or networks + pegged to Bitcoin as a sidechain or run as a standalone blockchain with arbitrary asset + tokens. + ''; + homepage = "https://www.github.com/ElementsProject/elements"; + maintainers = with maintainers; [ prusnak ]; + license = licenses.mit; + platforms = platforms.unix; + # Qt GUI is currently broken in upstream + # No rule to make target 'qt/res/rendered_icons/about.png', needed by 'qt/qrc_bitcoin.cpp'. + broken = withGui; + }; +} diff --git a/pkgs/applications/blockchains/fix-bitcoin-qt-build.patch b/pkgs/applications/blockchains/fix-bitcoin-qt-build.patch deleted file mode 100644 index c49bbc43251..00000000000 --- a/pkgs/applications/blockchains/fix-bitcoin-qt-build.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- bitcoin-abc-v0.15.0-src/build-aux/m4/bitcoin_qt.m4 1970-01-01 01:00:01.000000000 +0100 -+++ bitcoin-abc-v0.15.0-src.org/build-aux/m4/bitcoin_qt.m4 2017-09-27 23:38:44.748384197 +0100 -@@ -35,11 +35,7 @@ - dnl Output: $1 is set to the path of $2 if found. $2 are searched in order. - AC_DEFUN([BITCOIN_QT_PATH_PROGS],[ - BITCOIN_QT_CHECK([ -- if test "x$3" != x; then -- AC_PATH_PROGS($1,$2,,$3) -- else -- AC_PATH_PROGS($1,$2) -- fi -+ AC_PATH_PROGS($1,$2) - if test "x$$1" = x && test "x$4" != xyes; then - BITCOIN_QT_FAIL([$1 not found]) - fi diff --git a/pkgs/applications/blockchains/go-ethereum.nix b/pkgs/applications/blockchains/go-ethereum.nix deleted file mode 100644 index 28a7b22a24f..00000000000 --- a/pkgs/applications/blockchains/go-ethereum.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }: - -let - # A list of binaries to put into separate outputs - bins = [ - "geth" - "clef" - ]; - -in buildGoModule rec { - pname = "go-ethereum"; - version = "1.10.6"; - - src = fetchFromGitHub { - owner = "ethereum"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-4lapkoxSKdXlD6rmUxnlSKrfH+DeV6/wV05CqJjuzjA="; - }; - - runVend = true; - vendorSha256 = "sha256-5qi01y0SIEI0WRYu2I2RN94QFS8rrlioFvnRqqp6wtk="; - - doCheck = false; - - outputs = [ "out" ] ++ bins; - - # Move binaries to separate outputs and symlink them back to $out - postInstall = lib.concatStringsSep "\n" ( - builtins.map (bin: "mkdir -p \$${bin}/bin && mv $out/bin/${bin} \$${bin}/bin/ && ln -s \$${bin}/bin/${bin} $out/bin/") bins - ); - - subPackages = [ - "cmd/abidump" - "cmd/abigen" - "cmd/bootnode" - "cmd/checkpoint-admin" - "cmd/clef" - "cmd/devp2p" - "cmd/ethkey" - "cmd/evm" - "cmd/faucet" - "cmd/geth" - "cmd/p2psim" - "cmd/puppeth" - "cmd/rlpdump" - "cmd/utils" - ]; - - # Fix for usb-related segmentation faults on darwin - propagatedBuildInputs = - lib.optionals stdenv.isDarwin [ libobjc IOKit ]; - - meta = with lib; { - homepage = "https://geth.ethereum.org/"; - description = "Official golang implementation of the Ethereum protocol"; - license = with licenses; [ lgpl3Plus gpl3Plus ]; - maintainers = with maintainers; [ adisbladis lionello xrelkd RaghavSood ]; - }; -} diff --git a/pkgs/applications/blockchains/go-ethereum/default.nix b/pkgs/applications/blockchains/go-ethereum/default.nix new file mode 100644 index 00000000000..28a7b22a24f --- /dev/null +++ b/pkgs/applications/blockchains/go-ethereum/default.nix @@ -0,0 +1,60 @@ +{ lib, stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }: + +let + # A list of binaries to put into separate outputs + bins = [ + "geth" + "clef" + ]; + +in buildGoModule rec { + pname = "go-ethereum"; + version = "1.10.6"; + + src = fetchFromGitHub { + owner = "ethereum"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-4lapkoxSKdXlD6rmUxnlSKrfH+DeV6/wV05CqJjuzjA="; + }; + + runVend = true; + vendorSha256 = "sha256-5qi01y0SIEI0WRYu2I2RN94QFS8rrlioFvnRqqp6wtk="; + + doCheck = false; + + outputs = [ "out" ] ++ bins; + + # Move binaries to separate outputs and symlink them back to $out + postInstall = lib.concatStringsSep "\n" ( + builtins.map (bin: "mkdir -p \$${bin}/bin && mv $out/bin/${bin} \$${bin}/bin/ && ln -s \$${bin}/bin/${bin} $out/bin/") bins + ); + + subPackages = [ + "cmd/abidump" + "cmd/abigen" + "cmd/bootnode" + "cmd/checkpoint-admin" + "cmd/clef" + "cmd/devp2p" + "cmd/ethkey" + "cmd/evm" + "cmd/faucet" + "cmd/geth" + "cmd/p2psim" + "cmd/puppeth" + "cmd/rlpdump" + "cmd/utils" + ]; + + # Fix for usb-related segmentation faults on darwin + propagatedBuildInputs = + lib.optionals stdenv.isDarwin [ libobjc IOKit ]; + + meta = with lib; { + homepage = "https://geth.ethereum.org/"; + description = "Official golang implementation of the Ethereum protocol"; + license = with licenses; [ lgpl3Plus gpl3Plus ]; + maintainers = with maintainers; [ adisbladis lionello xrelkd RaghavSood ]; + }; +} diff --git a/pkgs/applications/blockchains/litecoin.nix b/pkgs/applications/blockchains/litecoin.nix deleted file mode 100644 index c80ef342c75..00000000000 --- a/pkgs/applications/blockchains/litecoin.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ lib, stdenv, mkDerivation, fetchFromGitHub -, pkg-config, autoreconfHook -, openssl, db48, boost, zlib, miniupnpc -, glib, protobuf, util-linux, qrencode -, AppKit -, withGui ? true, libevent -, qtbase, qttools -, zeromq -}: - -with lib; - -mkDerivation rec { - - name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version; - version = "0.18.1"; - - src = fetchFromGitHub { - owner = "litecoin-project"; - repo = "litecoin"; - rev = "v${version}"; - sha256 = "11753zhyx1kmrlljc6kbjwrcb06dfcrsqvmw3iaki9a132qk6l5c"; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ openssl db48 boost zlib zeromq - miniupnpc glib protobuf util-linux libevent ] - ++ optionals stdenv.isDarwin [ AppKit ] - ++ 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" ]; - - enableParallelBuilding = true; - - meta = { - description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm"; - longDescription= '' - Litecoin is a peer-to-peer Internet currency that enables instant payments - to anyone in the world. It is based on the Bitcoin protocol but differs - from Bitcoin in that it can be efficiently mined with consumer-grade hardware. - Litecoin provides faster transaction confirmations (2.5 minutes on average) - and uses a memory-hard, scrypt-based mining proof-of-work algorithm to target - the regular computers and GPUs most people already have. - The Litecoin network is scheduled to produce 84 million currency units. - ''; - homepage = "https://litecoin.org/"; - platforms = platforms.unix; - license = licenses.mit; - broken = stdenv.isDarwin; - maintainers = with maintainers; [ offline ]; - }; -} diff --git a/pkgs/applications/blockchains/litecoin/default.nix b/pkgs/applications/blockchains/litecoin/default.nix new file mode 100644 index 00000000000..c80ef342c75 --- /dev/null +++ b/pkgs/applications/blockchains/litecoin/default.nix @@ -0,0 +1,55 @@ +{ lib, stdenv, mkDerivation, fetchFromGitHub +, pkg-config, autoreconfHook +, openssl, db48, boost, zlib, miniupnpc +, glib, protobuf, util-linux, qrencode +, AppKit +, withGui ? true, libevent +, qtbase, qttools +, zeromq +}: + +with lib; + +mkDerivation rec { + + name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version; + version = "0.18.1"; + + src = fetchFromGitHub { + owner = "litecoin-project"; + repo = "litecoin"; + rev = "v${version}"; + sha256 = "11753zhyx1kmrlljc6kbjwrcb06dfcrsqvmw3iaki9a132qk6l5c"; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ openssl db48 boost zlib zeromq + miniupnpc glib protobuf util-linux libevent ] + ++ optionals stdenv.isDarwin [ AppKit ] + ++ 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" ]; + + enableParallelBuilding = true; + + meta = { + description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm"; + longDescription= '' + Litecoin is a peer-to-peer Internet currency that enables instant payments + to anyone in the world. It is based on the Bitcoin protocol but differs + from Bitcoin in that it can be efficiently mined with consumer-grade hardware. + Litecoin provides faster transaction confirmations (2.5 minutes on average) + and uses a memory-hard, scrypt-based mining proof-of-work algorithm to target + the regular computers and GPUs most people already have. + The Litecoin network is scheduled to produce 84 million currency units. + ''; + homepage = "https://litecoin.org/"; + platforms = platforms.unix; + license = licenses.mit; + broken = stdenv.isDarwin; + maintainers = with maintainers; [ offline ]; + }; +} diff --git a/pkgs/applications/blockchains/lnd.nix b/pkgs/applications/blockchains/lnd.nix deleted file mode 100644 index c956bca9a1a..00000000000 --- a/pkgs/applications/blockchains/lnd.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ buildGoModule -, fetchFromGitHub -, lib -, tags ? [ "autopilotrpc" "signrpc" "walletrpc" "chainrpc" "invoicesrpc" "watchtowerrpc" "routerrpc" "monitoring" ] -}: - -buildGoModule rec { - pname = "lnd"; - version = "0.13.1-beta"; - - src = fetchFromGitHub { - owner = "lightningnetwork"; - repo = "lnd"; - rev = "v${version}"; - sha256 = "07cs9yq83laajmfwfv42xfkfai3q873wg4qg7bfzw18w5fllivkg"; - }; - - vendorSha256 = "1hk67x8nlc0wm1pg8k8hywih623p4c0klfhfyy26b7mqq62lazia"; - - subPackages = ["cmd/lncli" "cmd/lnd"]; - - preBuild = let - buildVars = { - RawTags = lib.concatStringsSep "," tags; - GoVersion = "$(go version | egrep -o 'go[0-9]+[.][^ ]*')"; - }; - buildVarsFlags = lib.concatStringsSep " " (lib.mapAttrsToList (k: v: "-X github.com/lightningnetwork/lnd/build.${k}=${v}") buildVars); - in - lib.optionalString (tags != []) '' - buildFlagsArray+=("-tags=${lib.concatStringsSep " " tags}") - buildFlagsArray+=("-ldflags=${buildVarsFlags}") - ''; - - meta = with lib; { - description = "Lightning Network Daemon"; - homepage = "https://github.com/lightningnetwork/lnd"; - license = licenses.mit; - maintainers = with maintainers; [ cypherpunk2140 prusnak ]; - }; -} diff --git a/pkgs/applications/blockchains/lnd/default.nix b/pkgs/applications/blockchains/lnd/default.nix new file mode 100644 index 00000000000..c956bca9a1a --- /dev/null +++ b/pkgs/applications/blockchains/lnd/default.nix @@ -0,0 +1,40 @@ +{ buildGoModule +, fetchFromGitHub +, lib +, tags ? [ "autopilotrpc" "signrpc" "walletrpc" "chainrpc" "invoicesrpc" "watchtowerrpc" "routerrpc" "monitoring" ] +}: + +buildGoModule rec { + pname = "lnd"; + version = "0.13.1-beta"; + + src = fetchFromGitHub { + owner = "lightningnetwork"; + repo = "lnd"; + rev = "v${version}"; + sha256 = "07cs9yq83laajmfwfv42xfkfai3q873wg4qg7bfzw18w5fllivkg"; + }; + + vendorSha256 = "1hk67x8nlc0wm1pg8k8hywih623p4c0klfhfyy26b7mqq62lazia"; + + subPackages = ["cmd/lncli" "cmd/lnd"]; + + preBuild = let + buildVars = { + RawTags = lib.concatStringsSep "," tags; + GoVersion = "$(go version | egrep -o 'go[0-9]+[.][^ ]*')"; + }; + buildVarsFlags = lib.concatStringsSep " " (lib.mapAttrsToList (k: v: "-X github.com/lightningnetwork/lnd/build.${k}=${v}") buildVars); + in + lib.optionalString (tags != []) '' + buildFlagsArray+=("-tags=${lib.concatStringsSep " " tags}") + buildFlagsArray+=("-ldflags=${buildVarsFlags}") + ''; + + meta = with lib; { + description = "Lightning Network Daemon"; + homepage = "https://github.com/lightningnetwork/lnd"; + license = licenses.mit; + maintainers = with maintainers; [ cypherpunk2140 prusnak ]; + }; +} diff --git a/pkgs/applications/blockchains/lndmanage.nix b/pkgs/applications/blockchains/lndmanage.nix deleted file mode 100644 index 3c7e28d831e..00000000000 --- a/pkgs/applications/blockchains/lndmanage.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ lib, fetchFromGitHub, python3Packages }: - -python3Packages.buildPythonApplication rec { - pname = "lndmanage"; - version = "0.12.0"; - - src = fetchFromGitHub { - owner = "bitromortac"; - repo = pname; - rev = "v${version}"; - sha256 = "1p73wdxv3fca2ga4nqpjk5lig7bj2v230lh8niw490p5y7hhnggl"; - }; - - propagatedBuildInputs = with python3Packages; [ - cycler - decorator - googleapis-common-protos - grpcio - grpcio-tools - kiwisolver - networkx - numpy - protobuf - pyparsing - python-dateutil - six - pygments - ]; - - preBuild = '' - substituteInPlace setup.py --replace '==' '>=' - ''; - - preCheck = '' - export HOME=$(mktemp -d) - ''; - - meta = with lib; { - description = "Channel management tool for lightning network daemon (LND) operators"; - homepage = "https://github.com/bitromortac/lndmanage"; - license = licenses.mit; - maintainers = with maintainers; [ mmilata ]; - }; -} diff --git a/pkgs/applications/blockchains/lndmanage/default.nix b/pkgs/applications/blockchains/lndmanage/default.nix new file mode 100644 index 00000000000..3c7e28d831e --- /dev/null +++ b/pkgs/applications/blockchains/lndmanage/default.nix @@ -0,0 +1,44 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "lndmanage"; + version = "0.12.0"; + + src = fetchFromGitHub { + owner = "bitromortac"; + repo = pname; + rev = "v${version}"; + sha256 = "1p73wdxv3fca2ga4nqpjk5lig7bj2v230lh8niw490p5y7hhnggl"; + }; + + propagatedBuildInputs = with python3Packages; [ + cycler + decorator + googleapis-common-protos + grpcio + grpcio-tools + kiwisolver + networkx + numpy + protobuf + pyparsing + python-dateutil + six + pygments + ]; + + preBuild = '' + substituteInPlace setup.py --replace '==' '>=' + ''; + + preCheck = '' + export HOME=$(mktemp -d) + ''; + + meta = with lib; { + description = "Channel management tool for lightning network daemon (LND) operators"; + homepage = "https://github.com/bitromortac/lndmanage"; + license = licenses.mit; + maintainers = with maintainers; [ mmilata ]; + }; +} diff --git a/pkgs/applications/blockchains/masari.nix b/pkgs/applications/blockchains/masari.nix deleted file mode 100644 index bf995da36af..00000000000 --- a/pkgs/applications/blockchains/masari.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, unbound, openssl, boost -, lmdb, miniupnpc, readline }: - -stdenv.mkDerivation rec { - pname = "masari"; - version = "0.1.4.0"; - - src = fetchFromGitHub { - owner = "masari-project"; - repo = "masari"; - rev = "v${version}"; - sha256 = "0l6i21wkq5f6z8xr756i7vqgkzk7lixaa31ydy34fkfcqxppgxz3"; - }; - - nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ boost miniupnpc openssl lmdb unbound readline ]; - - meta = with lib; { - description = "scalability-focused, untraceable, secure, and fungible cryptocurrency using the RingCT protocol"; - homepage = "https://www.getmasari.org/"; - license = licenses.bsd3; - maintainers = with maintainers; [ fpletz ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/masari/default.nix b/pkgs/applications/blockchains/masari/default.nix new file mode 100644 index 00000000000..bf995da36af --- /dev/null +++ b/pkgs/applications/blockchains/masari/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, unbound, openssl, boost +, lmdb, miniupnpc, readline }: + +stdenv.mkDerivation rec { + pname = "masari"; + version = "0.1.4.0"; + + src = fetchFromGitHub { + owner = "masari-project"; + repo = "masari"; + rev = "v${version}"; + sha256 = "0l6i21wkq5f6z8xr756i7vqgkzk7lixaa31ydy34fkfcqxppgxz3"; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ boost miniupnpc openssl lmdb unbound readline ]; + + meta = with lib; { + description = "scalability-focused, untraceable, secure, and fungible cryptocurrency using the RingCT protocol"; + homepage = "https://www.getmasari.org/"; + license = licenses.bsd3; + maintainers = with maintainers; [ fpletz ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/namecoin.nix b/pkgs/applications/blockchains/namecoin.nix deleted file mode 100644 index dccee1dc056..00000000000 --- a/pkgs/applications/blockchains/namecoin.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkg-config, qt4, protobuf, qrencode, hexdump -, withGui }: - -with lib; -stdenv.mkDerivation rec { - version = "nc0.20.1"; - name = "namecoin" + toString (optional (!withGui) "d") + "-" + version; - - src = fetchFromGitHub { - owner = "namecoin"; - repo = "namecoin-core"; - rev = version; - sha256 = "1wpfp9y95lmfg2nk1xqzchwck1wk6gwkya1rj07mf5in9jngxk9z"; - }; - - nativeBuildInputs = [ - autoreconfHook - pkg-config - hexdump - ]; - - buildInputs = [ - openssl - boost - libevent - db4 - miniupnpc - eject - ] ++ optionals withGui [ - qt4 - protobuf - qrencode - ]; - - enableParallelBuilding = true; - - configureFlags = [ - "--with-boost-libdir=${boost.out}/lib" - ]; - - meta = { - description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency"; - homepage = "https://namecoin.org"; - license = licenses.mit; - maintainers = with maintainers; [ infinisil ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/namecoin/default.nix b/pkgs/applications/blockchains/namecoin/default.nix new file mode 100644 index 00000000000..dccee1dc056 --- /dev/null +++ b/pkgs/applications/blockchains/namecoin/default.nix @@ -0,0 +1,48 @@ +{ lib, stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkg-config, qt4, protobuf, qrencode, hexdump +, withGui }: + +with lib; +stdenv.mkDerivation rec { + version = "nc0.20.1"; + name = "namecoin" + toString (optional (!withGui) "d") + "-" + version; + + src = fetchFromGitHub { + owner = "namecoin"; + repo = "namecoin-core"; + rev = version; + sha256 = "1wpfp9y95lmfg2nk1xqzchwck1wk6gwkya1rj07mf5in9jngxk9z"; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + hexdump + ]; + + buildInputs = [ + openssl + boost + libevent + db4 + miniupnpc + eject + ] ++ optionals withGui [ + qt4 + protobuf + qrencode + ]; + + enableParallelBuilding = true; + + configureFlags = [ + "--with-boost-libdir=${boost.out}/lib" + ]; + + meta = { + description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency"; + homepage = "https://namecoin.org"; + license = licenses.mit; + maintainers = with maintainers; [ infinisil ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/particl-core/default.nix b/pkgs/applications/blockchains/particl-core/default.nix new file mode 100644 index 00000000000..99bc49e8db3 --- /dev/null +++ b/pkgs/applications/blockchains/particl-core/default.nix @@ -0,0 +1,53 @@ +{ lib, stdenv +, autoreconfHook +, boost +, db48 +, fetchurl +, libevent +, miniupnpc +, openssl +, pkg-config +, zeromq +, zlib +, unixtools +, python3 +}: + +with lib; + +stdenv.mkDerivation rec { + pname = "particl-core"; + version = "0.19.2.5"; + + src = fetchurl { + url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz"; + sha256 = "sha256-uI4T8h6RvCikk8h/sZmGlj3Uj3Xhu0vDn/fPb6rLcSg="; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ openssl db48 boost zlib miniupnpc libevent zeromq unixtools.hexdump python3 ]; + + configureFlags = [ + "--disable-bench" + "--with-boost-libdir=${boost.out}/lib" + ] ++ optionals (!doCheck) [ + "--enable-tests=no" + ]; + + # Always check during Hydra builds + doCheck = true; + preCheck = "patchShebangs test"; + enableParallelBuilding = true; + + meta = { + description = "Privacy-Focused Marketplace & Decentralized Application Platform"; + longDescription= '' + An open source, decentralized privacy platform built for global person to person eCommerce. + RPC daemon and CLI client only. + ''; + homepage = "https://particl.io/"; + maintainers = with maintainers; [ demyanrogozhin ]; + license = licenses.mit; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/blockchains/particl/particl-core.nix b/pkgs/applications/blockchains/particl/particl-core.nix deleted file mode 100644 index 99bc49e8db3..00000000000 --- a/pkgs/applications/blockchains/particl/particl-core.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ lib, stdenv -, autoreconfHook -, boost -, db48 -, fetchurl -, libevent -, miniupnpc -, openssl -, pkg-config -, zeromq -, zlib -, unixtools -, python3 -}: - -with lib; - -stdenv.mkDerivation rec { - pname = "particl-core"; - version = "0.19.2.5"; - - src = fetchurl { - url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz"; - sha256 = "sha256-uI4T8h6RvCikk8h/sZmGlj3Uj3Xhu0vDn/fPb6rLcSg="; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook ]; - buildInputs = [ openssl db48 boost zlib miniupnpc libevent zeromq unixtools.hexdump python3 ]; - - configureFlags = [ - "--disable-bench" - "--with-boost-libdir=${boost.out}/lib" - ] ++ optionals (!doCheck) [ - "--enable-tests=no" - ]; - - # Always check during Hydra builds - doCheck = true; - preCheck = "patchShebangs test"; - enableParallelBuilding = true; - - meta = { - description = "Privacy-Focused Marketplace & Decentralized Application Platform"; - longDescription= '' - An open source, decentralized privacy platform built for global person to person eCommerce. - RPC daemon and CLI client only. - ''; - homepage = "https://particl.io/"; - maintainers = with maintainers; [ demyanrogozhin ]; - license = licenses.mit; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/blockchains/pivx.nix b/pkgs/applications/blockchains/pivx.nix deleted file mode 100644 index 58986a10676..00000000000 --- a/pkgs/applications/blockchains/pivx.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ fetchFromGitHub, lib, stdenv, pkg-config, autoreconfHook, wrapQtAppsHook ? null -, openssl, db48, boost, zlib, miniupnpc, gmp -, qrencode, glib, protobuf, yasm, libevent -, util-linux, qtbase ? null, qttools ? null -, enableUpnp ? false -, disableWallet ? false -, disableDaemon ? false -, withGui ? false }: - -with lib; -stdenv.mkDerivation rec { - name = "pivx-${version}"; - version = "4.1.1"; - - src = fetchFromGitHub { - owner = "PIVX-Project"; - repo= "PIVX"; - rev = "v${version}"; - sha256 = "03ndk46h6093v8s18d5iffz48zhlshq7jrk6vgpjfs6z2iqgd2sy"; - }; - - nativeBuildInputs = [ pkg-config autoreconfHook ] ++ optionals withGui [ wrapQtAppsHook ]; - buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf util-linux ] - ++ optionals withGui [ qtbase qttools qrencode ]; - - configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] - ++ optional enableUpnp "--enable-upnp-default" - ++ optional disableWallet "--disable-wallet" - ++ optional disableDaemon "--disable-daemon" - ++ optionals withGui [ "--with-gui=yes" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - - enableParallelBuilding = true; - doChecks = true; - postBuild = '' - mkdir -p $out/share/applications $out/share/icons - cp contrib/debian/pivx-qt.desktop $out/share/applications/ - cp share/pixmaps/*128.png $out/share/icons/ - ''; - - doInstallCheck = true; - installCheckPhase = '' - $out/bin/test_pivx - ''; - - meta = with lib; { - description = "An open source crypto-currency focused on fast private transactions"; - longDescription = '' - PIVX is an MIT licensed, open source, blockchain-based cryptocurrency with - ultra fast transactions, low fees, high network decentralization, and - Zero Knowledge cryptography proofs for industry-leading transaction anonymity. - ''; - license = licenses.mit; - homepage = "https://pivx.org"; - maintainers = with maintainers; [ wucke13 ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/blockchains/pivx/default.nix b/pkgs/applications/blockchains/pivx/default.nix new file mode 100644 index 00000000000..58986a10676 --- /dev/null +++ b/pkgs/applications/blockchains/pivx/default.nix @@ -0,0 +1,59 @@ +{ fetchFromGitHub, lib, stdenv, pkg-config, autoreconfHook, wrapQtAppsHook ? null +, openssl, db48, boost, zlib, miniupnpc, gmp +, qrencode, glib, protobuf, yasm, libevent +, util-linux, qtbase ? null, qttools ? null +, enableUpnp ? false +, disableWallet ? false +, disableDaemon ? false +, withGui ? false }: + +with lib; +stdenv.mkDerivation rec { + name = "pivx-${version}"; + version = "4.1.1"; + + src = fetchFromGitHub { + owner = "PIVX-Project"; + repo= "PIVX"; + rev = "v${version}"; + sha256 = "03ndk46h6093v8s18d5iffz48zhlshq7jrk6vgpjfs6z2iqgd2sy"; + }; + + nativeBuildInputs = [ pkg-config autoreconfHook ] ++ optionals withGui [ wrapQtAppsHook ]; + buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf util-linux ] + ++ optionals withGui [ qtbase qttools qrencode ]; + + configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] + ++ optional enableUpnp "--enable-upnp-default" + ++ optional disableWallet "--disable-wallet" + ++ optional disableDaemon "--disable-daemon" + ++ optionals withGui [ "--with-gui=yes" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + + enableParallelBuilding = true; + doChecks = true; + postBuild = '' + mkdir -p $out/share/applications $out/share/icons + cp contrib/debian/pivx-qt.desktop $out/share/applications/ + cp share/pixmaps/*128.png $out/share/icons/ + ''; + + doInstallCheck = true; + installCheckPhase = '' + $out/bin/test_pivx + ''; + + meta = with lib; { + description = "An open source crypto-currency focused on fast private transactions"; + longDescription = '' + PIVX is an MIT licensed, open source, blockchain-based cryptocurrency with + ultra fast transactions, low fees, high network decentralization, and + Zero Knowledge cryptography proofs for industry-leading transaction anonymity. + ''; + license = licenses.mit; + homepage = "https://pivx.org"; + maintainers = with maintainers; [ wucke13 ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/blockchains/quorum.nix b/pkgs/applications/blockchains/quorum.nix deleted file mode 100644 index 1424ddc9516..00000000000 --- a/pkgs/applications/blockchains/quorum.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ lib, fetchFromGitHub, buildGoPackage, git, which, removeReferencesTo, go }: - -buildGoPackage rec { - pname = "quorum"; - version = "2.5.0"; - - goPackagePath = "github.com/jpmorganchase/quorum"; - - src = fetchFromGitHub { - owner = "jpmorganchase"; - repo = pname; - rev = "v${version}"; - sha256 = "0xfdaqp9bj5dkw12gy19lxj73zh7w80j051xclsvnd41sfah86ll"; - }; - - buildInputs = [ git which ]; - - buildPhase = '' - cd "go/src/$goPackagePath" - make geth bootnode swarm - ''; - - installPhase = '' - mkdir -pv $out/bin - cp -v build/bin/geth build/bin/bootnode build/bin/swarm $out/bin - ''; - - # fails with `GOFLAGS=-trimpath` - allowGoReference = true; - preFixup = '' - find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' + - ''; - - meta = with lib; { - description = "A permissioned implementation of Ethereum supporting data privacy"; - homepage = "https://www.goquorum.com/"; - license = licenses.lgpl3; - maintainers = with maintainers; [ mmahut ]; - platforms = subtractLists ["aarch64-linux"] platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/quorum/default.nix b/pkgs/applications/blockchains/quorum/default.nix new file mode 100644 index 00000000000..1424ddc9516 --- /dev/null +++ b/pkgs/applications/blockchains/quorum/default.nix @@ -0,0 +1,41 @@ +{ lib, fetchFromGitHub, buildGoPackage, git, which, removeReferencesTo, go }: + +buildGoPackage rec { + pname = "quorum"; + version = "2.5.0"; + + goPackagePath = "github.com/jpmorganchase/quorum"; + + src = fetchFromGitHub { + owner = "jpmorganchase"; + repo = pname; + rev = "v${version}"; + sha256 = "0xfdaqp9bj5dkw12gy19lxj73zh7w80j051xclsvnd41sfah86ll"; + }; + + buildInputs = [ git which ]; + + buildPhase = '' + cd "go/src/$goPackagePath" + make geth bootnode swarm + ''; + + installPhase = '' + mkdir -pv $out/bin + cp -v build/bin/geth build/bin/bootnode build/bin/swarm $out/bin + ''; + + # fails with `GOFLAGS=-trimpath` + allowGoReference = true; + preFixup = '' + find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' + + ''; + + meta = with lib; { + description = "A permissioned implementation of Ethereum supporting data privacy"; + homepage = "https://www.goquorum.com/"; + license = licenses.lgpl3; + maintainers = with maintainers; [ mmahut ]; + platforms = subtractLists ["aarch64-linux"] platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/stellar-core.nix b/pkgs/applications/blockchains/stellar-core.nix deleted file mode 100644 index 6ecc4e241cb..00000000000 --- a/pkgs/applications/blockchains/stellar-core.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, autoconf, libtool, automake, pkg-config, git -, bison, flex, postgresql, ripgrep }: - -stdenv.mkDerivation rec { - pname = "stellar-core"; - version = "17.0.0"; - - src = fetchFromGitHub { - owner = "stellar"; - repo = pname; - rev = "v${version}"; - sha256 = "1ngl8yjqb8xzhdwzlxzzxf14q2hgwy2ysb17sn5380rrn0jswin1"; - fetchSubmodules = true; - }; - - nativeBuildInputs = [ automake autoconf git libtool pkg-config ripgrep ]; - - propagatedBuildInputs = [ bison flex postgresql ]; - - preConfigure = '' - # Due to https://github.com/NixOS/nixpkgs/issues/8567 we cannot rely on - # having the .git directory present, so directly provide the version - substituteInPlace src/Makefile.am --replace '$$vers' '${pname} ${version}'; - - # Everything needs to be staged in git because the build uses - # `git ls-files` to search for source files to compile. - git init - git add . - - ./autogen.sh - ''; - - meta = with lib; { - description = "Implements the Stellar Consensus Protocol, a federated consensus protocol"; - longDescription = '' - Stellar-core is the backbone of the Stellar network. It maintains a - local copy of the ledger, communicating and staying in sync with other - instances of stellar-core on the network. Optionally, stellar-core can - store historical records of the ledger and participate in consensus. - ''; - homepage = "https://www.stellar.org/"; - platforms = [ "x86_64-linux" ]; - maintainers = with maintainers; [ ]; - license = licenses.asl20; - }; -} diff --git a/pkgs/applications/blockchains/stellar-core/default.nix b/pkgs/applications/blockchains/stellar-core/default.nix new file mode 100644 index 00000000000..6ecc4e241cb --- /dev/null +++ b/pkgs/applications/blockchains/stellar-core/default.nix @@ -0,0 +1,46 @@ +{ lib, stdenv, fetchFromGitHub, autoconf, libtool, automake, pkg-config, git +, bison, flex, postgresql, ripgrep }: + +stdenv.mkDerivation rec { + pname = "stellar-core"; + version = "17.0.0"; + + src = fetchFromGitHub { + owner = "stellar"; + repo = pname; + rev = "v${version}"; + sha256 = "1ngl8yjqb8xzhdwzlxzzxf14q2hgwy2ysb17sn5380rrn0jswin1"; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ automake autoconf git libtool pkg-config ripgrep ]; + + propagatedBuildInputs = [ bison flex postgresql ]; + + preConfigure = '' + # Due to https://github.com/NixOS/nixpkgs/issues/8567 we cannot rely on + # having the .git directory present, so directly provide the version + substituteInPlace src/Makefile.am --replace '$$vers' '${pname} ${version}'; + + # Everything needs to be staged in git because the build uses + # `git ls-files` to search for source files to compile. + git init + git add . + + ./autogen.sh + ''; + + meta = with lib; { + description = "Implements the Stellar Consensus Protocol, a federated consensus protocol"; + longDescription = '' + Stellar-core is the backbone of the Stellar network. It maintains a + local copy of the ledger, communicating and staying in sync with other + instances of stellar-core on the network. Optionally, stellar-core can + store historical records of the ledger and participate in consensus. + ''; + homepage = "https://www.stellar.org/"; + platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/applications/blockchains/sumokoin.nix b/pkgs/applications/blockchains/sumokoin.nix deleted file mode 100644 index ee817b58195..00000000000 --- a/pkgs/applications/blockchains/sumokoin.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, cmake, unbound, openssl, boost -, libunwind, lmdb, miniupnpc }: - -stdenv.mkDerivation rec { - pname = "sumokoin"; - version = "0.2.0.0"; - - src = fetchFromGitHub { - owner = "sumoprojects"; - repo = "sumokoin"; - rev = "v${version}"; - sha256 = "0ndgcawhxh3qb3llrrilrwzhs36qpxv7f53rxgcansbff9b3za6n"; - }; - - nativeBuildInputs = [ cmake ]; - buildInputs = [ unbound openssl boost libunwind lmdb miniupnpc ]; - - postPatch = '' - substituteInPlace src/blockchain_db/lmdb/db_lmdb.cpp --replace mdb_size_t size_t - ''; - - cmakeFlags = [ - "-DLMDB_INCLUDE=${lmdb}/include" - ]; - - meta = with lib; { - description = "A fork of Monero and a truely fungible cryptocurrency"; - homepage = "https://www.sumokoin.org/"; - license = licenses.bsd3; - maintainers = with maintainers; [ fpletz ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/sumokoin/default.nix b/pkgs/applications/blockchains/sumokoin/default.nix new file mode 100644 index 00000000000..ee817b58195 --- /dev/null +++ b/pkgs/applications/blockchains/sumokoin/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub, cmake, unbound, openssl, boost +, libunwind, lmdb, miniupnpc }: + +stdenv.mkDerivation rec { + pname = "sumokoin"; + version = "0.2.0.0"; + + src = fetchFromGitHub { + owner = "sumoprojects"; + repo = "sumokoin"; + rev = "v${version}"; + sha256 = "0ndgcawhxh3qb3llrrilrwzhs36qpxv7f53rxgcansbff9b3za6n"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ unbound openssl boost libunwind lmdb miniupnpc ]; + + postPatch = '' + substituteInPlace src/blockchain_db/lmdb/db_lmdb.cpp --replace mdb_size_t size_t + ''; + + cmakeFlags = [ + "-DLMDB_INCLUDE=${lmdb}/include" + ]; + + meta = with lib; { + description = "A fork of Monero and a truely fungible cryptocurrency"; + homepage = "https://www.sumokoin.org/"; + license = licenses.bsd3; + maintainers = with maintainers; [ fpletz ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/tessera.nix b/pkgs/applications/blockchains/tessera.nix deleted file mode 100644 index 5b139252553..00000000000 --- a/pkgs/applications/blockchains/tessera.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ lib, stdenv, fetchurl, makeWrapper, jre }: - -stdenv.mkDerivation rec { - pname = "tessera"; - version = "0.10.2"; - - src = fetchurl { - url = "https://oss.sonatype.org/service/local/repositories/releases/content/com/jpmorgan/quorum/${pname}-app/${version}/${pname}-app-${version}-app.jar"; - sha256 = "1zn8w7q0q5man0407kb82lw4mlvyiy9whq2f6izf2b5415f9s0m4"; - }; - - nativeBuildInputs = [ makeWrapper ]; - - dontUnpack = true; - - installPhase = '' - makeWrapper ${jre}/bin/java $out/bin/tessera --add-flags "-jar $src" - ''; - - meta = with lib; { - description = "Enterprise Implementation of Quorum's transaction manager"; - homepage = "https://github.com/jpmorganchase/tessera"; - license = licenses.asl20; - maintainers = with maintainers; [ mmahut ]; - }; -} diff --git a/pkgs/applications/blockchains/tessera/default.nix b/pkgs/applications/blockchains/tessera/default.nix new file mode 100644 index 00000000000..5b139252553 --- /dev/null +++ b/pkgs/applications/blockchains/tessera/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchurl, makeWrapper, jre }: + +stdenv.mkDerivation rec { + pname = "tessera"; + version = "0.10.2"; + + src = fetchurl { + url = "https://oss.sonatype.org/service/local/repositories/releases/content/com/jpmorgan/quorum/${pname}-app/${version}/${pname}-app-${version}-app.jar"; + sha256 = "1zn8w7q0q5man0407kb82lw4mlvyiy9whq2f6izf2b5415f9s0m4"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + dontUnpack = true; + + installPhase = '' + makeWrapper ${jre}/bin/java $out/bin/tessera --add-flags "-jar $src" + ''; + + meta = with lib; { + description = "Enterprise Implementation of Quorum's transaction manager"; + homepage = "https://github.com/jpmorganchase/tessera"; + license = licenses.asl20; + maintainers = with maintainers; [ mmahut ]; + }; +} diff --git a/pkgs/applications/blockchains/turbo-geth.nix b/pkgs/applications/blockchains/turbo-geth.nix deleted file mode 100644 index b1548212a69..00000000000 --- a/pkgs/applications/blockchains/turbo-geth.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ lib, buildGoModule, fetchFromGitHub }: - -buildGoModule rec { - pname = "turbo-geth"; - version = "2021.05.02"; - - src = fetchFromGitHub { - owner = "ledgerwatch"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-7sTRAAlKZOdwi/LRbIEDKWpBe1ol8pZfEf2KIC4s0xk="; - }; - - vendorSha256 = "1d0ahdb2b5v8nxq3kdxw151phnyv6habb8kr8qjaq3kyhcnyk6ng"; - runVend = true; - - subPackages = [ - "cmd/tg" - "cmd/evm" - "cmd/rpcdaemon" - "cmd/rlpdump" - ]; - - meta = with lib; { - homepage = "https://github.com/ledgerwatch/turbo-geth/"; - description = "Ethereum node and geth fork focused on scalability and modularity"; - license = with licenses; [ lgpl3Plus gpl3Plus ]; - maintainers = with maintainers; [ xwvvvvwx ]; - }; -} diff --git a/pkgs/applications/blockchains/turbo-geth/default.nix b/pkgs/applications/blockchains/turbo-geth/default.nix new file mode 100644 index 00000000000..b1548212a69 --- /dev/null +++ b/pkgs/applications/blockchains/turbo-geth/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "turbo-geth"; + version = "2021.05.02"; + + src = fetchFromGitHub { + owner = "ledgerwatch"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-7sTRAAlKZOdwi/LRbIEDKWpBe1ol8pZfEf2KIC4s0xk="; + }; + + vendorSha256 = "1d0ahdb2b5v8nxq3kdxw151phnyv6habb8kr8qjaq3kyhcnyk6ng"; + runVend = true; + + subPackages = [ + "cmd/tg" + "cmd/evm" + "cmd/rpcdaemon" + "cmd/rlpdump" + ]; + + meta = with lib; { + homepage = "https://github.com/ledgerwatch/turbo-geth/"; + description = "Ethereum node and geth fork focused on scalability and modularity"; + license = with licenses; [ lgpl3Plus gpl3Plus ]; + maintainers = with maintainers; [ xwvvvvwx ]; + }; +} diff --git a/pkgs/applications/blockchains/vertcoin.nix b/pkgs/applications/blockchains/vertcoin.nix deleted file mode 100644 index acb02298e11..00000000000 --- a/pkgs/applications/blockchains/vertcoin.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ lib, stdenv -, fetchFromGitHub -, openssl -, boost -, libevent -, autoreconfHook -, db4 -, pkg-config -, protobuf -, hexdump -, zeromq -, withGui -, qtbase ? null -, qttools ? null -, wrapQtAppsHook ? null -}: - -with lib; - -stdenv.mkDerivation rec { - pname = "vertcoin"; - version = "0.15.0.1"; - - name = pname + toString (optional (!withGui) "d") + "-" + version; - - src = fetchFromGitHub { - owner = pname + "-project"; - repo = pname + "-core"; - rev = version; - sha256 = "09q7qicw52gv225hq6wlpsf4zr4hjc8miyim5cygi5nxxrlw7kd3"; - }; - - nativeBuildInputs = [ - autoreconfHook - pkg-config - hexdump - ] ++ optionals withGui [ - wrapQtAppsHook - ]; - - buildInputs = [ - openssl - boost - libevent - db4 - zeromq - ] ++ optionals withGui [ - qtbase - qttools - protobuf - ]; - - enableParallelBuilding = true; - - configureFlags = [ - "--with-boost-libdir=${boost.out}/lib" - ] ++ optionals withGui [ - "--with-gui=qt5" - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" - ]; - - meta = { - description = "A digital currency with mining decentralisation and ASIC resistance as a key focus"; - homepage = "https://vertcoin.org/"; - license = licenses.mit; - maintainers = [ maintainers.mmahut ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/blockchains/vertcoin/default.nix b/pkgs/applications/blockchains/vertcoin/default.nix new file mode 100644 index 00000000000..acb02298e11 --- /dev/null +++ b/pkgs/applications/blockchains/vertcoin/default.nix @@ -0,0 +1,69 @@ +{ lib, stdenv +, fetchFromGitHub +, openssl +, boost +, libevent +, autoreconfHook +, db4 +, pkg-config +, protobuf +, hexdump +, zeromq +, withGui +, qtbase ? null +, qttools ? null +, wrapQtAppsHook ? null +}: + +with lib; + +stdenv.mkDerivation rec { + pname = "vertcoin"; + version = "0.15.0.1"; + + name = pname + toString (optional (!withGui) "d") + "-" + version; + + src = fetchFromGitHub { + owner = pname + "-project"; + repo = pname + "-core"; + rev = version; + sha256 = "09q7qicw52gv225hq6wlpsf4zr4hjc8miyim5cygi5nxxrlw7kd3"; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + hexdump + ] ++ optionals withGui [ + wrapQtAppsHook + ]; + + buildInputs = [ + openssl + boost + libevent + db4 + zeromq + ] ++ optionals withGui [ + qtbase + qttools + protobuf + ]; + + enableParallelBuilding = true; + + configureFlags = [ + "--with-boost-libdir=${boost.out}/lib" + ] ++ optionals withGui [ + "--with-gui=qt5" + "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" + ]; + + meta = { + description = "A digital currency with mining decentralisation and ASIC resistance as a key focus"; + homepage = "https://vertcoin.org/"; + license = licenses.mit; + maintainers = [ maintainers.mmahut ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/blockchains/wownero.nix b/pkgs/applications/blockchains/wownero.nix deleted file mode 100644 index bc020de8be4..00000000000 --- a/pkgs/applications/blockchains/wownero.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ lib, stdenv, fetchgit, cmake, boost, miniupnpc_2, openssl, unbound -, readline, libsodium, rapidjson, fetchurl -}: - -with lib; - -let - randomwowVersion = "1.1.7"; - randomwow = fetchurl { - url = "https://github.com/wownero/RandomWOW/archive/${randomwowVersion}.tar.gz"; - sha256 = "1xp76zf01hnhnk6rjvqjav9n9pnvxzxlzqa5rc574d1c2qczfy3q"; - }; -in - -stdenv.mkDerivation rec { - pname = "wownero"; - version = "0.8.0.1"; - - src = fetchgit { - url = "https://git.wownero.com/wownero/wownero.git"; - rev = "v${version}"; - sha256 = "15443xv6q1nw4627ajk6k4ghhahvh82lb4gyb8nvq753p2v838g3"; - fetchSubmodules = false; - }; - - nativeBuildInputs = [ cmake ]; - - buildInputs = [ - boost miniupnpc_2 openssl unbound rapidjson readline libsodium - ]; - - postUnpack = '' - rm -r $sourceRoot/external/RandomWOW - unpackFile ${randomwow} - mv RandomWOW-${randomwowVersion} $sourceRoot/external/RandomWOW - ''; - - cmakeFlags = [ - "-DReadline_ROOT_DIR=${readline.dev}" - "-DMANUAL_SUBMODULES=ON" - ]; - - meta = { - description = '' - A privacy-centric memecoin that was fairly launched on April 1, 2018 with - no pre-mine, stealth-mine or ICO - ''; - longDescription = '' - Wownero has a maximum supply of around 184 million WOW with a slow and - steady emission over 50 years. It is a fork of Monero, but with its own - genesis block, so there is no degradation of privacy due to ring - signatures using different participants for the same tx outputs on - opposing forks. - ''; - homepage = "https://wownero.org/"; - license = licenses.bsd3; - platforms = platforms.linux; - maintainers = with maintainers; [ fuwa ]; - }; -} diff --git a/pkgs/applications/blockchains/wownero/default.nix b/pkgs/applications/blockchains/wownero/default.nix new file mode 100644 index 00000000000..bc020de8be4 --- /dev/null +++ b/pkgs/applications/blockchains/wownero/default.nix @@ -0,0 +1,60 @@ +{ lib, stdenv, fetchgit, cmake, boost, miniupnpc_2, openssl, unbound +, readline, libsodium, rapidjson, fetchurl +}: + +with lib; + +let + randomwowVersion = "1.1.7"; + randomwow = fetchurl { + url = "https://github.com/wownero/RandomWOW/archive/${randomwowVersion}.tar.gz"; + sha256 = "1xp76zf01hnhnk6rjvqjav9n9pnvxzxlzqa5rc574d1c2qczfy3q"; + }; +in + +stdenv.mkDerivation rec { + pname = "wownero"; + version = "0.8.0.1"; + + src = fetchgit { + url = "https://git.wownero.com/wownero/wownero.git"; + rev = "v${version}"; + sha256 = "15443xv6q1nw4627ajk6k4ghhahvh82lb4gyb8nvq753p2v838g3"; + fetchSubmodules = false; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ + boost miniupnpc_2 openssl unbound rapidjson readline libsodium + ]; + + postUnpack = '' + rm -r $sourceRoot/external/RandomWOW + unpackFile ${randomwow} + mv RandomWOW-${randomwowVersion} $sourceRoot/external/RandomWOW + ''; + + cmakeFlags = [ + "-DReadline_ROOT_DIR=${readline.dev}" + "-DMANUAL_SUBMODULES=ON" + ]; + + meta = { + description = '' + A privacy-centric memecoin that was fairly launched on April 1, 2018 with + no pre-mine, stealth-mine or ICO + ''; + longDescription = '' + Wownero has a maximum supply of around 184 million WOW with a slow and + steady emission over 50 years. It is a fork of Monero, but with its own + genesis block, so there is no degradation of privacy due to ring + signatures using different participants for the same tx outputs on + opposing forks. + ''; + homepage = "https://wownero.org/"; + license = licenses.bsd3; + platforms = platforms.linux; + maintainers = with maintainers; [ fuwa ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c81ca8b0a2e..aef5e596924 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28553,38 +28553,60 @@ in balanceofsatoshis = nodePackages.balanceofsatoshis; - bitcoin = libsForQt5.callPackage ../applications/blockchains/bitcoin.nix { miniupnpc = miniupnpc_2; withGui = true; }; - bitcoind = callPackage ../applications/blockchains/bitcoin.nix { miniupnpc = miniupnpc_2; withGui = false; }; + bitcoin = libsForQt5.callPackage ../applications/blockchains/bitcoin { + miniupnpc = miniupnpc_2; + withGui = true; + }; + + bitcoind = callPackage ../applications/blockchains/bitcoin { + miniupnpc = miniupnpc_2; + withGui = false; + }; - bitcoind-knots = callPackage ../applications/blockchains/bitcoin-knots.nix { miniupnpc = miniupnpc_2; }; + bitcoind-knots = callPackage ../applications/blockchains/bitcoin-knots { miniupnpc = miniupnpc_2; }; cgminer = callPackage ../applications/blockchains/cgminer { }; chia = callPackage ../applications/blockchains/chia { }; - clightning = callPackage ../applications/blockchains/clightning.nix { }; + clightning = callPackage ../applications/blockchains/clightning { }; - bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc.nix { boost = boost165; withGui = true; }; - bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc.nix { + bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc { + boost = boost165; + withGui = true; + }; + bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc { boost = boost165; mkDerivation = stdenv.mkDerivation; withGui = false; }; - bitcoin-unlimited = libsForQt514.callPackage ../applications/blockchains/bitcoin-unlimited.nix { + bitcoin-unlimited = libsForQt514.callPackage ../applications/blockchains/bitcoin-unlimited { inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit; withGui = true; }; - bitcoind-unlimited = callPackage ../applications/blockchains/bitcoin-unlimited.nix { + bitcoind-unlimited = callPackage ../applications/blockchains/bitcoin-unlimited { inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit; withGui = false; }; - bitcoin-classic = libsForQt514.callPackage ../applications/blockchains/bitcoin-classic.nix { boost = boost165; withGui = true; }; - bitcoind-classic = callPackage ../applications/blockchains/bitcoin-classic.nix { boost = boost165; withGui = false; }; + bitcoin-classic = libsForQt514.callPackage ../applications/blockchains/bitcoin-classic { + boost = boost165; + withGui = true; + }; + bitcoind-classic = callPackage ../applications/blockchains/bitcoin-classic { + boost = boost165; + withGui = false; + }; - bitcoin-gold = libsForQt514.callPackage ../applications/blockchains/bitcoin-gold.nix { boost = boost165; withGui = true; }; - bitcoind-gold = callPackage ../applications/blockchains/bitcoin-gold.nix { boost = boost165; withGui = false; }; + bitcoin-gold = libsForQt514.callPackage ../applications/blockchains/bitcoin-gold { + boost = boost165; + withGui = true; + }; + bitcoind-gold = callPackage ../applications/blockchains/bitcoin-gold { + boost = boost165; + withGui = false; + }; btcpayserver = callPackage ../applications/blockchains/btcpayserver { }; @@ -28592,25 +28614,37 @@ in cryptop = python3.pkgs.callPackage ../applications/blockchains/cryptop { }; - dashpay = callPackage ../applications/blockchains/dashpay.nix { }; + dashpay = callPackage ../applications/blockchains/dashpay { }; - dcrd = callPackage ../applications/blockchains/dcrd.nix { }; - dcrwallet = callPackage ../applications/blockchains/dcrwallet.nix { }; + dcrd = callPackage ../applications/blockchains/dcrd { }; + dcrwallet = callPackage ../applications/blockchains/dcrwallet { }; - dero = callPackage ../applications/blockchains/dero.nix { boost = boost165; }; + dero = callPackage ../applications/blockchains/dero { boost = boost165; }; - digibyte = libsForQt514.callPackage ../applications/blockchains/digibyte.nix { withGui = true; }; - digibyted = callPackage ../applications/blockchains/digibyte.nix { withGui = false; }; + digibyte = libsForQt514.callPackage ../applications/blockchains/digibyte { withGui = true; }; + digibyted = callPackage ../applications/blockchains/digibyte { withGui = false; }; - dogecoin = callPackage ../applications/blockchains/dogecoin.nix { boost = boost165; withGui = true; }; - dogecoind = callPackage ../applications/blockchains/dogecoin.nix { boost = boost165; withGui = false; }; + dogecoin = callPackage ../applications/blockchains/dogecoin { + boost = boost165; + withGui = true; + }; + dogecoind = callPackage ../applications/blockchains/dogecoin { + boost = boost165; + withGui = false; + }; - eclair = callPackage ../applications/blockchains/eclair.nix { }; + eclair = callPackage ../applications/blockchains/eclair { }; - electrs = callPackage ../applications/blockchains/electrs.nix { }; + electrs = callPackage ../applications/blockchains/electrs { }; - elements = libsForQt5.callPackage ../applications/blockchains/elements.nix { miniupnpc = miniupnpc_2; withGui = true; }; - elementsd = callPackage ../applications/blockchains/elements.nix { miniupnpc = miniupnpc_2; withGui = false; }; + elements = libsForQt5.callPackage ../applications/blockchains/elements { + miniupnpc = miniupnpc_2; + withGui = true; + }; + elementsd = callPackage ../applications/blockchains/elements { + miniupnpc = miniupnpc_2; + withGui = false; + }; ergo = callPackage ../applications/blockchains/ergo { }; @@ -28618,7 +28652,7 @@ in faraday = callPackage ../applications/blockchains/faraday { }; - go-ethereum = callPackage ../applications/blockchains/go-ethereum.nix { + go-ethereum = callPackage ../applications/blockchains/go-ethereum { inherit (darwin) libobjc; inherit (darwin.apple_sdk.frameworks) IOKit; }; @@ -28631,18 +28665,18 @@ in lightning-pool = callPackage ../applications/blockchains/lightning-pool { }; - litecoin = libsForQt514.callPackage ../applications/blockchains/litecoin.nix { + litecoin = libsForQt514.callPackage ../applications/blockchains/litecoin { inherit (darwin.apple_sdk.frameworks) AppKit; }; litecoind = litecoin.override { withGui = false; }; livedl = callPackage ../tools/misc/livedl { }; - lnd = callPackage ../applications/blockchains/lnd.nix { }; + lnd = callPackage ../applications/blockchains/lnd { }; lndconnect = callPackage ../applications/blockchains/lndconnect { }; - lndmanage = callPackage ../applications/blockchains/lndmanage.nix { }; + lndmanage = callPackage ../applications/blockchains/lndmanage { }; monero = callPackage ../applications/blockchains/monero { inherit (darwin.apple_sdk.frameworks) CoreData IOKit PCSC; @@ -28657,17 +28691,17 @@ in boost = boost17x; }; - masari = callPackage ../applications/blockchains/masari.nix { boost = boost165; }; + masari = callPackage ../applications/blockchains/masari { boost = boost165; }; nano-wallet = libsForQt5.callPackage ../applications/blockchains/nano-wallet { }; - namecoin = callPackage ../applications/blockchains/namecoin.nix { withGui = true; }; - namecoind = callPackage ../applications/blockchains/namecoin.nix { withGui = false; }; + namecoin = callPackage ../applications/blockchains/namecoin { withGui = true; }; + namecoind = callPackage ../applications/blockchains/namecoin { withGui = false; }; nbxplorer = callPackage ../applications/blockchains/nbxplorer { }; - pivx = libsForQt5.callPackage ../applications/blockchains/pivx.nix { withGui = true; }; - pivxd = callPackage ../applications/blockchains/pivx.nix { + pivx = libsForQt5.callPackage ../applications/blockchains/pivx { withGui = true; }; + pivxd = callPackage ../applications/blockchains/pivx { withGui = false; autoreconfHook = buildPackages.autoreconfHook269; }; @@ -28676,22 +28710,28 @@ in pycoin = with python3Packages; toPythonApplication pycoin; - stellar-core = callPackage ../applications/blockchains/stellar-core.nix { }; + stellar-core = callPackage ../applications/blockchains/stellar-core { }; - sumokoin = callPackage ../applications/blockchains/sumokoin.nix { boost = boost165; }; + sumokoin = callPackage ../applications/blockchains/sumokoin { boost = boost165; }; - tessera = callPackage ../applications/blockchains/tessera.nix { }; + tessera = callPackage ../applications/blockchains/tessera { }; - turbo-geth = callPackage ../applications/blockchains/turbo-geth.nix { }; + turbo-geth = callPackage ../applications/blockchains/turbo-geth { }; - vertcoin = libsForQt514.callPackage ../applications/blockchains/vertcoin.nix { boost = boost165; withGui = true; }; - vertcoind = callPackage ../applications/blockchains/vertcoin.nix { boost = boost165; withGui = false; }; + vertcoin = libsForQt514.callPackage ../applications/blockchains/vertcoin { + boost = boost165; + withGui = true; + }; + vertcoind = callPackage ../applications/blockchains/vertcoin { + boost = boost165; + withGui = false; + }; wasabiwallet = callPackage ../applications/blockchains/wasabiwallet { }; - wasabibackend = callPackage ../applications/blockchains/wasabibackend { Nuget = dotnetPackages.Nuget; }; + wasabibackend = callPackage ../applications/blockchains/wasabibackend { Nuget = dotnetPackages.Nuget; }; - wownero = callPackage ../applications/blockchains/wownero.nix {}; + wownero = callPackage ../applications/blockchains/wownero { }; zcash = callPackage ../applications/blockchains/zcash { stdenv = llvmPackages_11.stdenv; }; @@ -28703,9 +28743,9 @@ in polkadot = callPackage ../applications/blockchains/polkadot { }; - particl-core = callPackage ../applications/blockchains/particl/particl-core.nix { miniupnpc = miniupnpc_2; }; + particl-core = callPackage ../applications/blockchains/particl-core { miniupnpc = miniupnpc_2; }; - quorum = callPackage ../applications/blockchains/quorum.nix { }; + quorum = callPackage ../applications/blockchains/quorum { }; whirlpool-gui = callPackage ../applications/blockchains/whirlpool-gui { }; @@ -30390,7 +30430,7 @@ in cryptoverif = callPackage ../applications/science/logic/cryptoverif { }; - crypto-org-wallet = callPackage ../applications/blockchains/crypto-org-wallet.nix { }; + crypto-org-wallet = callPackage ../applications/blockchains/crypto-org-wallet { }; caprice32 = callPackage ../misc/emulators/caprice32 { }; @@ -32468,7 +32508,7 @@ in fluxboxlauncher = callPackage ../applications/misc/fluxboxlauncher {}; - btcdeb = callPackage ../applications/blockchains/btcdeb {}; + btcdeb = callPackage ../applications/blockchains/btcdeb { }; jitsi-meet-electron = callPackage ../applications/networking/instant-messengers/jitsi-meet-electron { }; -- cgit 1.4.1