@@ -1,82 +0,0 @@
1−{ fetchurl, stdenv, pkgconfig
2−, openssl, db48, boost, zlib, miniupnpc, qt4, qrencode, glib, protobuf
3−, utillinux, autogen, autoconf, autobuild, automake, autoreconfHook, db }:
4−
5−with stdenv.lib;
6−
7−let
8− buildAltcoin = makeOverridable ({walletName, gui ? true, ...}@a:
9− stdenv.mkDerivation ({
10− name = "${walletName}${toString (optional (!gui) "d")}-${a.version}";
11− buildInputs = [ pkgconfig openssl db48 boost zlib miniupnpc ]
12− ++ optionals gui [ qt4 qrencode ] ++ a.extraBuildInputs or [];
13−
14− configurePhase = optional gui "qmake";
15−
16− preBuild = optional (!gui) "cd src";
17− makefile = optional (!gui) "makefile.unix";
18−
19− installPhase = if gui then ''
20− install -D "${walletName}-qt" "$out/bin/${walletName}-qt"
21− '' else ''
22− install -D "${walletName}d" "$out/bin/${walletName}d"
23− '';
24−
25− passthru.walletName = walletName;
26−
27− meta = {
28− platforms = platforms.unix;
29− license = license.mit;
30− maintainers = [ maintainers.offline ] ++ a.extraMaintainers;
31− };
32− } // a)
33− );
34−
35−in rec {
36− inherit buildAltcoin;
37−
38− namecoin = buildAltcoin rec {
39− walletName = "namecoin";
40− version = "0.3.51.00";
41− gui = false;
42−
43− src = fetchurl {
44− url = "https://github.com/namecoin/namecoin/archive/nc${version}.tar.gz";
45− sha256 = "0r6zjzichfjzhvpdy501gwy9h3zvlla3kbgb38z1pzaa0ld9siyx";
46− };
47−
48− patches = [ ./namecoin_dynamic.patch ];
49−
50− extraBuildInputs = [ glib ];
51−
52− meta = {
53− description = "A decentralized key/value registration and transfer system based on Bitcoin technology";
54− homepage = http://namecoin.info;
55− };
56− };
57−
58− darkcoin = buildAltcoin rec {
59− walletName = "darkcoin";
60− version = "0.9.13.15";
61−
62− src = fetchurl {
63− url = "https://github.com/darkcoin/darkcoin/archive/v${version}.tar.gz";
64− sha256 = "1kly2y3g4dr1jwwf81smqvc7k662x6rvg4ggmxva1yaifb67bgjb";
65− };
66−
67− extraBuildInputs = [ glib ];
68−
69− meta = {
70− description = "A decentralized key/value registration and transfer system";
71− longDescription = ''
72− Darkcoin (DRK) is an open sourced, privacy-centric digital
73− currency. It allows you keep your finances private as you make
74− transactions, similar to cash.
75− '';
76− homepage = http://darkcoin.io;
77− extraMaintainers = [ maintainers.AndersonTorres ];
78− };
79− };
80− darkcoind = darkcoin.override { gui = false; };
81−
82−}