diff options
author | William Casarin <jb55@jb55.com> | 2019-08-28 10:37:52 -0700 |
---|---|---|
committer | William Casarin <jb55@jb55.com> | 2019-08-29 05:01:42 -0700 |
commit | 72682e46546d6d024a29e2fde009372e03b45b9f (patch) | |
tree | 4f5c749f3fdff3f182d9f7b005339aa10fd53897 /pkgs/applications/blockchains/btc1.nix | |
parent | 58fd72f3e996856d5a4ba21ae25f87a82fe3e5dc (diff) | |
download | nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.gz nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.bz2 nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.lz nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.xz nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.zst nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.zip |
tree: rename altcoins to blockchains
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat (limited to 'pkgs/applications/blockchains/btc1.nix')
-rw-r--r-- | pkgs/applications/blockchains/btc1.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/btc1.nix b/pkgs/applications/blockchains/btc1.nix new file mode 100644 index 00000000000..3241148aee1 --- /dev/null +++ b/pkgs/applications/blockchains/btc1.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchurl, pkgconfig, autoreconfHook, hexdump, openssl, db48 +, boost, zlib, miniupnpc, qt4, protobuf, qrencode, libevent +, AppKit +, withGui ? !stdenv.isDarwin +}: + +with stdenv.lib; +stdenv.mkDerivation rec{ + name = "bit1" + (toString (optional (!withGui) "d")) + "-" + version; + version = "1.15.1"; + + src = fetchurl { + url = "https://github.com/btc1/bitcoin/archive/v${version}.tar.gz"; + sha256 = "0v0g2wb4nsnhddxzb63vj2bc1mgyj05vqm5imicjfz8prvgc0si8"; + }; + + nativeBuildInputs = [ pkgconfig autoreconfHook hexdump ]; + buildInputs = [ openssl db48 boost zlib miniupnpc protobuf libevent ] + ++ optionals withGui [ qt4 qrencode ] + ++ optional stdenv.isDarwin AppKit; + + configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] + ++ optionals withGui [ "--with-gui=qt4" ]; + + meta = { + description = "Peer-to-peer electronic cash system (btc1 client)"; + longDescription= '' + Bitcoin is a free open source peer-to-peer electronic cash system that is + completely decentralized, without the need for a central server or trusted + parties. Users hold the crypto keys to their own money and transact directly + with each other, with the help of a P2P network to check for double-spending. + + btc1 is an implementation of a Bitcoin full node with segwit2x hard fork + support. + ''; + homepage = "https://github.com/btc1/bitcoin"; + license = licenses.mit; + maintainers = with maintainers; [ sorpaas ]; + platforms = platforms.unix; + }; +} |