about summary refs log tree commit diff
path: root/pkgs/applications/misc/namecoin/qt.nix
diff options
context:
space:
mode:
authorChris Double <chris.double@double.co.nz>2014-06-30 12:08:34 +1200
committerChris Double <chris.double@double.co.nz>2014-06-30 13:38:16 +1200
commitde4d6f0447393a0a2c688461740d12b886a57f9d (patch)
tree16b5a5284bd214141422af941a2b791568833f65 /pkgs/applications/misc/namecoin/qt.nix
parentf8e984b9b24f05891ddef1309d57bc3071ed1c4c (diff)
downloadnixlib-de4d6f0447393a0a2c688461740d12b886a57f9d.tar
nixlib-de4d6f0447393a0a2c688461740d12b886a57f9d.tar.gz
nixlib-de4d6f0447393a0a2c688461740d12b886a57f9d.tar.bz2
nixlib-de4d6f0447393a0a2c688461740d12b886a57f9d.tar.lz
nixlib-de4d6f0447393a0a2c688461740d12b886a57f9d.tar.xz
nixlib-de4d6f0447393a0a2c688461740d12b886a57f9d.tar.zst
nixlib-de4d6f0447393a0a2c688461740d12b886a57f9d.zip
Add namecoin cryptocurrency
Diffstat (limited to 'pkgs/applications/misc/namecoin/qt.nix')
-rw-r--r--pkgs/applications/misc/namecoin/qt.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/misc/namecoin/qt.nix b/pkgs/applications/misc/namecoin/qt.nix
new file mode 100644
index 000000000000..08dbee26f0b2
--- /dev/null
+++ b/pkgs/applications/misc/namecoin/qt.nix
@@ -0,0 +1,33 @@
+{ fetchgit, stdenv, db4, boost, openssl, qt4, unzip, namecoin }:
+
+stdenv.mkDerivation rec {
+  version = "0.3.75";
+  name = "namecoin-qt-${version}";
+
+  src = namecoin.src;
+
+  # Don't build with miniupnpc due to namecoin using a different verison that
+  # ships with NixOS and it is API incompatible.
+  buildInputs = [ db4 boost openssl unzip qt4 ];
+
+  configurePhase = ''
+    qmake USE_UPNP=-
+  '';
+
+  buildPhase = ''
+    make
+  '';
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp namecoin-qt $out/bin
+  '';
+
+  meta = {
+    description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
+    homepage = "http://namecoin.info";
+    license = "MIT";
+    maintainers = [ "Chris Double <chris.double@double.co.nz>" ];
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}