about summary refs log tree commit diff
path: root/pkgs/applications/altcoins
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2014-12-20 14:56:21 -0200
committerAndersonTorres <torres.anderson.85@gmail.com>2015-01-02 10:00:32 -0200
commit968376db4458862406eaf6b64949c70c637f6885 (patch)
tree86b17d3d97239ddc97b4a4d67c80423c97b197ec /pkgs/applications/altcoins
parentac4f15b28274c46a4ed5d6c2e82c94a3decec353 (diff)
downloadnixlib-968376db4458862406eaf6b64949c70c637f6885.tar
nixlib-968376db4458862406eaf6b64949c70c637f6885.tar.gz
nixlib-968376db4458862406eaf6b64949c70c637f6885.tar.bz2
nixlib-968376db4458862406eaf6b64949c70c637f6885.tar.lz
nixlib-968376db4458862406eaf6b64949c70c637f6885.tar.xz
nixlib-968376db4458862406eaf6b64949c70c637f6885.tar.zst
nixlib-968376db4458862406eaf6b64949c70c637f6885.zip
Memorycoin (v0.8.5): altcoin for the masses
Memorycoin is an altcoin easily minerable by anyone, using only PC-based
hardware, unlike other ASIC'd altcoins.
Diffstat (limited to 'pkgs/applications/altcoins')
-rw-r--r--pkgs/applications/altcoins/default.nix3
-rw-r--r--pkgs/applications/altcoins/memorycoin.nix50
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix
index d97b10cadc3a..1196e6d5ebd0 100644
--- a/pkgs/applications/altcoins/default.nix
+++ b/pkgs/applications/altcoins/default.nix
@@ -14,6 +14,9 @@ rec {
   litecoin  = callPackage ./litecoin.nix { withGui = true; };
   litecoind = callPackage ./litecoin.nix { withGui = false; };
 
+  memorycoin  = callPackage ./memorycoin.nix { withGui = true; };
+  memorycoind = callPackage ./memorycoin.nix { withGui = false; };
+
   namecoin  = callPackage ./namecoin.nix  { inherit namecoind; };
   namecoind = callPackage ./namecoind.nix { };
 }
diff --git a/pkgs/applications/altcoins/memorycoin.nix b/pkgs/applications/altcoins/memorycoin.nix
new file mode 100644
index 000000000000..4e5e24e3062a
--- /dev/null
+++ b/pkgs/applications/altcoins/memorycoin.nix
@@ -0,0 +1,50 @@
+{ stdenv, fetchurl, pkgconfig, openssl, db48, boost
+, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode
+, 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";
+  };
+
+  buildInputs = [ pkgconfig openssl db48 boost zlib
+                  miniupnpc utillinux protobuf ]
+                  ++ optionals withGui [ qt4 qrencode ];
+
+  configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]
+                     ++ optionals withGui [ "--with-gui=qt4" ];
+
+  configurePhase = optional withGui "qmake";
+
+  preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile";
+
+  installPhase =
+    if withGui
+    then "install -D bitcoin-qt $out/bin/memorycoin-qt"
+    else "install -D bitcoind $out/bin/memorycoind";
+
+  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.
+    '';
+    homepage = "http://www.bitcoin.org/";
+    maintainers = with maintainers; [ AndersonTorres ];
+    license = licenses.mit;
+    platforms = platforms.unix;
+  };
+}