2014-12-20 16:56:21 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openssl, db48, boost
|
2017-06-18 09:55:58 +01:00
|
|
|
, zlib, qt4, qmake4Hook, utillinux, protobuf, qrencode
|
2014-12-20 16:56:21 +00:00
|
|
|
, withGui }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec{
|
|
|
|
|
|
|
|
name = "memorycoin" + (toString (optional (!withGui) "d")) + "-" + version;
|
|
|
|
version = "0.8.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/memorycoin/memorycoin/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1iyh6dqrg0mirwci5br5n5qw3ghp2cs23wd8ygr56bh9ml4dr1m8";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ openssl db48 boost zlib utillinux protobuf ]
|
2016-04-17 00:23:21 +01:00
|
|
|
++ optionals withGui [ qt4 qmake4Hook qrencode ];
|
2014-12-20 16:56:21 +00:00
|
|
|
|
2017-06-18 09:55:58 +01:00
|
|
|
qmakeFlags = ["USE_UPNP=-"];
|
|
|
|
makeFlags = ["USE_UPNP=-"];
|
|
|
|
|
2016-04-27 22:41:28 +01:00
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
2014-12-20 16:56:21 +00:00
|
|
|
++ optionals withGui [ "--with-gui=qt4" ];
|
|
|
|
|
2017-08-11 23:38:13 +01:00
|
|
|
preBuild = "unset AR;"
|
|
|
|
+ (toString (optional (!withGui) "cd src; cp makefile.unix Makefile"));
|
2014-12-20 16:56:21 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
if withGui
|
|
|
|
then "install -D bitcoin-qt $out/bin/memorycoin-qt"
|
|
|
|
else "install -D bitcoind $out/bin/memorycoind";
|
|
|
|
|
2017-12-06 05:42:13 +00:00
|
|
|
# `make build/version.o`:
|
|
|
|
# make: *** No rule to make target 'build/build.h', needed by 'build/version.o'. Stop.
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2014-12-20 16:56:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "Peer-to-peer, CPU-based electronic cash system";
|
|
|
|
longDescription= ''
|
|
|
|
Memorycoin is a cryptocurrency that aims to empower the
|
|
|
|
economically and financially marginalized. It allows individuals
|
|
|
|
to participate in the internet economy even when they live in
|
|
|
|
countries where credit card companies and PayPal(R) refuse to
|
|
|
|
operate. Individuals can store and transfer wealth with just a
|
|
|
|
memorized pass phrase.
|
|
|
|
|
|
|
|
Memorycoin is based on the Bitcoin code, but with some key
|
|
|
|
differences.
|
|
|
|
'';
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.bitcoin.org/;
|
2014-12-20 16:56:21 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
license = licenses.mit;
|
2018-04-21 20:13:13 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-12-20 16:56:21 +00:00
|
|
|
};
|
|
|
|
}
|