diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-07-28 18:01:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 18:01:16 +0000 |
commit | 6fcda9f1ec27db14412a2103281b4b14f806066a (patch) | |
tree | 10d6f3aa9b4fc34ca27e907a5a7d199e6fca15b2 /pkgs/applications/blockchains/vertcoin/default.nix | |
parent | a1d3be1d4226b7312ce6a8aa8e96a0cdbbf74243 (diff) | |
parent | 4ecfa58c97863796f407b823049bcf1bd1866aac (diff) | |
download | nixpkgs-6fcda9f1ec27db14412a2103281b4b14f806066a.tar nixpkgs-6fcda9f1ec27db14412a2103281b4b14f806066a.tar.gz nixpkgs-6fcda9f1ec27db14412a2103281b4b14f806066a.tar.bz2 nixpkgs-6fcda9f1ec27db14412a2103281b4b14f806066a.tar.lz nixpkgs-6fcda9f1ec27db14412a2103281b4b14f806066a.tar.xz nixpkgs-6fcda9f1ec27db14412a2103281b4b14f806066a.tar.zst nixpkgs-6fcda9f1ec27db14412a2103281b4b14f806066a.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/applications/blockchains/vertcoin/default.nix')
-rw-r--r-- | pkgs/applications/blockchains/vertcoin/default.nix | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/vertcoin/default.nix b/pkgs/applications/blockchains/vertcoin/default.nix new file mode 100644 index 00000000000..acb02298e11 --- /dev/null +++ b/pkgs/applications/blockchains/vertcoin/default.nix @@ -0,0 +1,69 @@ +{ lib, stdenv +, fetchFromGitHub +, openssl +, boost +, libevent +, autoreconfHook +, db4 +, pkg-config +, protobuf +, hexdump +, zeromq +, withGui +, qtbase ? null +, qttools ? null +, wrapQtAppsHook ? null +}: + +with lib; + +stdenv.mkDerivation rec { + pname = "vertcoin"; + version = "0.15.0.1"; + + name = pname + toString (optional (!withGui) "d") + "-" + version; + + src = fetchFromGitHub { + owner = pname + "-project"; + repo = pname + "-core"; + rev = version; + sha256 = "09q7qicw52gv225hq6wlpsf4zr4hjc8miyim5cygi5nxxrlw7kd3"; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + 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; + }; +} |