2018-07-21 02:44:44 +02:00
|
|
|
{ fetchFromGitHub, stdenv, db, boost, gmp, mpfr, qt4, qmake4Hook }:
|
2017-03-22 23:46:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.8.6-2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "freicoin";
|
2017-03-22 23:46:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "freicoin";
|
|
|
|
repo = "freicoin";
|
|
|
|
rev = "v${version}";
|
2018-03-10 02:28:53 +01:00
|
|
|
sha256 = "1v1qwv4x5agjba82s1vknmdgq67y26wzdwbmwwqavv7f7y3y860h";
|
2017-03-22 23:46:41 +01:00
|
|
|
};
|
|
|
|
|
2019-03-14 22:11:58 +01:00
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2017-06-18 10:46:31 +02:00
|
|
|
qmakeFlags = ["USE_UPNP=-"];
|
|
|
|
|
2017-03-22 23:46:41 +01:00
|
|
|
# I think that openssl and zlib are required, but come through other
|
|
|
|
# packages
|
|
|
|
|
2017-08-12 00:37:53 +02:00
|
|
|
preBuild = "unset AR";
|
|
|
|
|
2017-03-22 23:46:41 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp freicoin-qt $out/bin
|
2017-06-18 10:46:31 +02:00
|
|
|
'';
|
2017-03-22 23:46:41 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake4Hook ];
|
2017-06-18 10:46:31 +02:00
|
|
|
buildInputs = [ db boost gmp mpfr qt4 ];
|
2017-03-22 23:46:41 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Peer-to-peer currency with demurrage fee";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://freicoi.in/";
|
2017-03-22 23:46:41 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.viric ];
|
|
|
|
platforms = platforms.linux;
|
2019-08-20 22:47:18 +02:00
|
|
|
|
|
|
|
# upstream doesn't support newer openssl versions, use 1.0.1 for testing
|
|
|
|
broken = true;
|
2017-03-22 23:46:41 +01:00
|
|
|
};
|
|
|
|
}
|