mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
c78ae4251f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/litecoin/versions. These checks were done: - built on NixOS - /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0/bin/litecoind passed the binary check. - /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0/bin/litecoin-cli passed the binary check. - /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0/bin/litecoin-tx passed the binary check. - /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0/bin/test_litecoin passed the binary check. - /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0/bin/bench_litecoin passed the binary check. - Warning: no invocation of /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0/bin/litecoin-qt had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0/bin/test_litecoin-qt had a zero exit code or showed the expected version - 5 of 7 passed binary check by having a zero exit code. - 0 of 7 passed binary check by having the new version present in output. - found 0.16.0 with grep in /nix/store/27nwgb0f89hmkhfd4rs7lp78dhdnmkd3-litecoin-0.16.0 - directory tree listing: https://gist.github.com/c4a75d440e40edc63d7f86819e60beda - du listing: https://gist.github.com/72a199fee6e78c7261e85fc15fa3c1d6
45 lines
1.6 KiB
Nix
45 lines
1.6 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, pkgconfig, autoreconfHook
|
|
, openssl, db48, boost, zlib, miniupnpc
|
|
, glib, protobuf, utillinux, qt4, qrencode
|
|
, withGui, libevent }:
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version;
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "litecoin-project";
|
|
repo = "litecoin";
|
|
rev = "v${version}";
|
|
sha256 = "1g79sbplkn2bnb17i2kyh1d64bjl3ihbx83n0xssvjaajn56hbzw";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
buildInputs = [ openssl db48 boost zlib
|
|
miniupnpc glib protobuf utillinux libevent ]
|
|
++ optionals withGui [ qt4 qrencode ];
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
|
++ optionals withGui [ "--with-gui=qt4" ];
|
|
|
|
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;
|
|
maintainers = with maintainers; [ offline AndersonTorres ];
|
|
};
|
|
}
|