litecoin: 0.18.1 -> 0.21.2.1

This commit is contained in:
gbtb 2022-08-10 23:19:41 +10:00
parent a82bf7f338
commit 005aa4f4a8
2 changed files with 11 additions and 4 deletions

View File

@ -6,23 +6,24 @@
, withGui ? true, libevent , withGui ? true, libevent
, qtbase, qttools , qtbase, qttools
, zeromq , zeromq
, fmt
}: }:
with lib; with lib;
mkDerivation rec { mkDerivation rec {
pname = "litecoin" + optionalString (!withGui) "d"; pname = "litecoin" + optionalString (!withGui) "d";
version = "0.18.1"; version = "0.21.2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "litecoin-project"; owner = "litecoin-project";
repo = "litecoin"; repo = "litecoin";
rev = "v${version}"; rev = "v${version}";
sha256 = "11753zhyx1kmrlljc6kbjwrcb06dfcrsqvmw3iaki9a132qk6l5c"; sha256 = "sha256-WJFdac5hGrHy9o3HzjS91zH+4EtJY7kUJAQK+aZaEyo=";
}; };
nativeBuildInputs = [ pkg-config autoreconfHook ]; nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ openssl db48 boost zlib zeromq buildInputs = [ openssl db48 boost zlib zeromq fmt
miniupnpc glib protobuf util-linux libevent ] miniupnpc glib protobuf util-linux libevent ]
++ optionals stdenv.isDarwin [ AppKit ] ++ optionals stdenv.isDarwin [ AppKit ]
++ optionals withGui [ qtbase qttools qrencode ]; ++ optionals withGui [ qtbase qttools qrencode ];
@ -34,6 +35,11 @@ mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true;
checkPhase = ''
./src/test/test_litecoin
'';
meta = { meta = {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm"; description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm";

View File

@ -32040,8 +32040,9 @@ with pkgs;
lightning-pool = callPackage ../applications/blockchains/lightning-pool { }; lightning-pool = callPackage ../applications/blockchains/lightning-pool { };
litecoin = libsForQt514.callPackage ../applications/blockchains/litecoin { litecoin = libsForQt5.callPackage ../applications/blockchains/litecoin {
inherit (darwin.apple_sdk.frameworks) AppKit; inherit (darwin.apple_sdk.frameworks) AppKit;
boost = pkgs.boost174;
}; };
litecoind = litecoin.override { withGui = false; }; litecoind = litecoin.override { withGui = false; };