Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3acc5b418943
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8d4dba08a2f9
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 22, 2020

  1. bitcoin-gold: init at 0.15.2

    mmahut committed Jan 22, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    dywedir Vlad M.
    Copy the full SHA
    bce6129 View commit details

Commits on Jan 28, 2020

  1. Merge pull request #78282 from mmahut/btg

    bitcoin-gold: init at 0.15.2
    mmahut authored Jan 28, 2020
    Copy the full SHA
    8d4dba0 View commit details
Showing with 73 additions and 0 deletions.
  1. +70 −0 pkgs/applications/blockchains/bitcoin-gold.nix
  2. +3 −0 pkgs/top-level/all-packages.nix
70 changes: 70 additions & 0 deletions pkgs/applications/blockchains/bitcoin-gold.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{ stdenv
, fetchFromGitHub
, openssl
, boost
, libevent
, autoreconfHook
, db4
, pkgconfig
, protobuf
, hexdump
, zeromq
, libsodium
, withGui
, qtbase ? null
, qttools ? null
, wrapQtAppsHook ? null
}:

with stdenv.lib;

stdenv.mkDerivation rec {

pname = "bitcoin" + toString (optional (!withGui) "d") + "-gold";
version = "0.15.2";

src = fetchFromGitHub {
owner = "BTCGPU";
repo = "BTCGPU";
rev = "v${version}";
sha256 = "0grd1cd8d2nsrxl27la85kcan09z73fn70ncr9km4iccaj5pg12h";
};

nativeBuildInputs = [
autoreconfHook
pkgconfig
hexdump
] ++ optionals withGui [
wrapQtAppsHook
];

buildInputs = [
openssl
boost
libevent
db4
zeromq
libsodium
] ++ 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 = "BTG is a cryptocurrency with Bitcoin fundamentals, mined on common GPUs instead of specialty ASICs";
homepage = "https://bitcoingold.org/";
license = licenses.mit;
maintainers = [ maintainers.mmahut ];
platforms = platforms.linux;
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -22679,6 +22679,9 @@ in
bitcoin-classic = libsForQt5.callPackage ../applications/blockchains/bitcoin-classic.nix { boost = boost165; withGui = true; };
bitcoind-classic = callPackage ../applications/blockchains/bitcoin-classic.nix { boost = boost165; withGui = false; };

bitcoin-gold = libsForQt5.callPackage ../applications/blockchains/bitcoin-gold.nix { boost = boost165; withGui = true; };
bitcoind-gold = callPackage ../applications/blockchains/bitcoin-gold.nix { boost = boost165; withGui = false; };

btc1 = callPackage ../applications/blockchains/btc1.nix {
inherit (darwin.apple_sdk.frameworks) AppKit;
boost = boost165;