nixpkgs/pkgs/applications/blockchains/vertcoin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv
2020-01-21 12:32:58 +00:00
, fetchFromGitHub
, openssl
, boost
, libevent
, autoreconfHook
, db4
, pkg-config
2020-01-21 12:32:58 +00:00
, protobuf
, hexdump
, zeromq
2022-11-24 13:30:10 +00:00
, gmp
2020-01-21 12:32:58 +00:00
, withGui
, qtbase ? null
, qttools ? null
, wrapQtAppsHook ? null
}:
stdenv.mkDerivation rec {
pname = "vertcoin";
2022-11-24 13:30:10 +00:00
version = "0.18.0";
2020-01-21 12:32:58 +00:00
name = pname + toString (lib.optional (!withGui) "d") + "-" + version;
2020-01-21 12:32:58 +00:00
src = fetchFromGitHub {
owner = pname + "-project";
repo = pname + "-core";
2022-11-24 13:30:10 +00:00
rev = "2bd6dba7a822400581d5a6014afd671fb7e61f36";
sha256 = "ua9xXA+UQHGVpCZL0srX58DDUgpfNa+AAIKsxZbhvMk=";
2020-01-21 12:32:58 +00:00
};
nativeBuildInputs = [
autoreconfHook
pkg-config
2020-01-21 12:32:58 +00:00
hexdump
] ++ lib.optionals withGui [
2020-01-21 12:32:58 +00:00
wrapQtAppsHook
];
buildInputs = [
openssl
boost
libevent
db4
zeromq
2022-11-24 13:30:10 +00:00
gmp
] ++ lib.optionals withGui [
2020-01-21 12:32:58 +00:00
qtbase
qttools
protobuf
];
enableParallelBuilding = true;
configureFlags = [
"--with-boost-libdir=${boost.out}/lib"
] ++ lib.optionals withGui [
2020-01-21 12:32:58 +00:00
"--with-gui=qt5"
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
];
meta = with lib; {
2020-01-21 12:32:58 +00:00
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;
};
}