summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorMarek Mahut <marek.mahut@gmail.com>2020-01-24 23:36:02 +0100
committerGitHub <noreply@github.com>2020-01-24 23:36:02 +0100
commit85dc47b441e34f0f562facdd3a322dc76bdbffbb (patch)
tree8284d2bf06684feb5b7cc5e8b59e31a0ffcf0f27 /pkgs/applications
parent6d442b1737d0bf1f705641762f099889f496c827 (diff)
parent099a5aecd39d06474f4d58e5c61f6701b69283ae (diff)
downloadnixpkgs-85dc47b441e34f0f562facdd3a322dc76bdbffbb.tar
nixpkgs-85dc47b441e34f0f562facdd3a322dc76bdbffbb.tar.gz
nixpkgs-85dc47b441e34f0f562facdd3a322dc76bdbffbb.tar.bz2
nixpkgs-85dc47b441e34f0f562facdd3a322dc76bdbffbb.tar.lz
nixpkgs-85dc47b441e34f0f562facdd3a322dc76bdbffbb.tar.xz
nixpkgs-85dc47b441e34f0f562facdd3a322dc76bdbffbb.tar.zst
nixpkgs-85dc47b441e34f0f562facdd3a322dc76bdbffbb.zip
Merge pull request #78156 from mmahut/vertcoin
vertcoin: init at 0.14.0
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/blockchains/vertcoin.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/vertcoin.nix b/pkgs/applications/blockchains/vertcoin.nix
new file mode 100644
index 00000000000..1b8b0376331
--- /dev/null
+++ b/pkgs/applications/blockchains/vertcoin.nix
@@ -0,0 +1,69 @@
+{ stdenv
+, fetchFromGitHub
+, openssl
+, boost
+, libevent
+, autoreconfHook
+, db4
+, pkgconfig
+, protobuf
+, hexdump
+, zeromq
+, withGui
+, qtbase ? null
+, qttools ? null
+, wrapQtAppsHook ? null
+}:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+  pname = "vertcoin";
+  version = "0.14.0";
+
+  name = pname + toString (optional (!withGui) "d") + "-" + version;
+
+  src = fetchFromGitHub {
+    owner = pname + "-project";
+    repo = pname + "-core";
+    rev = version;
+    sha256 = "00vnmrhn5mad58dyiz8rxgsrn0663ii6fdbcqm20mv1l313k4882";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkgconfig
+    hexdump
+  ] ++ optionals withGui [
+    wrapQtAppsHook
+  ];
+
+  buildInputs = [
+    openssl
+    boost
+    libevent
+    db4
+    zeromq
+  ] ++ optionals withGui [
+    qtbase
+    qttools
+    protobuf
+  ];
+
+  enableParallelBuilding = true;
+
+  configureFlags = [
+      "--with-boost-libdir=${boost.out}/lib"
+  ] ++ optionals withGui [
+      "--with-gui=qt5"
+      "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
+  ];
+
+  meta = {
+    description = "A digital currency with mining decentralisation and ASIC resistance as a key focus";
+    homepage = "https://vertcoin.org/";
+    license = licenses.mit;
+    maintainers = [ maintainers.mmahut ];
+    platforms = platforms.linux;
+  };
+}