mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 20:11:43 +03:00
c9baba9212
(My OCD kicked in today...) Remove repeated package names, capitalize first word, remove trailing periods and move overlong descriptions to longDescription. I also simplified some descriptions as well, when they were particularly long or technical, often based on Arch Linux' package descriptions. I've tried to stay away from generated expressions (and I think I succeeded). Some specifics worth mentioning: * cron, has "Vixie Cron" in its description. The "Vixie" part is not mentioned anywhere else. I kept it in a parenthesis at the end of the description. * ctags description started with "Exuberant Ctags ...", and the "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis at the end of description. * nix has the description "The Nix Deployment System". Since that doesn't really say much what it is/does (especially after removing the package name!), I changed that to "Powerful package manager that makes package management reliable and reproducible" (borrowed from nixos.org). * Tons of "GNU Foo, Foo is a [the important bits]" descriptions is changed to just [the important bits]. If the package name doesn't contain GNU I don't think it's needed to say it in the description either.
50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{ fetchurl, stdenv, openssl, db48, boost, zlib, miniupnpc, qt4, utillinux
|
|
, pkgconfig, protobuf, qrencode }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.9.2.1";
|
|
name = "bitcoin-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://bitcoin.org/bin/${version}/${name}-linux.tar.gz";
|
|
sha256 = "0060f7d38b98113ab912d4c184000291d7f026eaf77ca5830deec15059678f54";
|
|
};
|
|
|
|
# hexdump from utillinux is required for tests
|
|
buildInputs = [
|
|
openssl db48 boost zlib miniupnpc qt4 utillinux pkgconfig protobuf qrencode
|
|
];
|
|
|
|
unpackPhase = ''
|
|
mkdir tmp-extract && (cd tmp-extract && tar xf $src)
|
|
tar xf tmp-extract/bitcoin*/src/bitcoin*.tar*
|
|
cd bitcoin*
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-boost=${boost}"
|
|
];
|
|
|
|
preCheck = ''
|
|
# At least one test requires writing in $HOME
|
|
HOME=$TMPDIR
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Peer-to-peer electronic cash system";
|
|
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.
|
|
'';
|
|
homepage = "http://www.bitcoin.org/";
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
license = stdenv.lib.licenses.mit;
|
|
};
|
|
}
|