2017-03-23 01:46:41 +03:00
|
|
|
{ fetchFromGitHub, stdenv, db, boost, gmp, mpfr, miniupnpc, qt4, qmake4Hook, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.8.6-2";
|
|
|
|
name = "freicoin-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "freicoin";
|
|
|
|
repo = "freicoin";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1m5pcnfhwhcj7q00p2sy3h73rkdm3w6grmljgiq53gshcj08cq1z";
|
|
|
|
};
|
|
|
|
|
2017-06-18 11:46:31 +03:00
|
|
|
qmakeFlags = ["USE_UPNP=-"];
|
|
|
|
|
2017-03-23 01:46:41 +03:00
|
|
|
# I think that openssl and zlib are required, but come through other
|
|
|
|
# packages
|
|
|
|
|
2017-08-12 01:37:53 +03:00
|
|
|
preBuild = "unset AR";
|
|
|
|
|
2017-03-23 01:46:41 +03:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp freicoin-qt $out/bin
|
2017-06-18 11:46:31 +03:00
|
|
|
'';
|
2017-03-23 01:46:41 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake4Hook ];
|
2017-06-18 11:46:31 +03:00
|
|
|
buildInputs = [ db boost gmp mpfr qt4 ];
|
2017-03-23 01:46:41 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Peer-to-peer currency with demurrage fee";
|
|
|
|
homepage = http://freicoi.in/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.viric ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|