2013-07-17 11:16:47 +01:00
|
|
|
{ fetchgit, stdenv, openssl, pcre }:
|
2013-05-30 11:41:29 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.21";
|
|
|
|
name = "vanitygen-${version}";
|
|
|
|
|
2013-07-17 11:16:47 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/samr7/vanitygen";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "1vzfv74hhiyrrpvjca8paydx1ashgbgn5plzrx4swyzxy1xkamah";
|
2013-05-30 11:41:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl pcre ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/bin
|
2013-05-30 11:41:29 +01:00
|
|
|
cp vanitygen $out/bin
|
|
|
|
cp keyconv $out/bin/vanitygen-keyconv
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bitcoin vanity address generator";
|
|
|
|
longDescription= ''
|
|
|
|
Vanitygen can search for exact prefixes or regular expression
|
|
|
|
matches, so you can generate Bitcoin addresses that starts
|
|
|
|
with the needed mnemonic.
|
|
|
|
|
|
|
|
Vanitygen can generate regular bitcoin addresses, namecoin
|
|
|
|
addresses, and testnet addresses.
|
|
|
|
|
|
|
|
When searching for exact prefixes, vanitygen will ensure that
|
|
|
|
the prefix is possible, will provide a difficulty estimate,
|
|
|
|
and will run about 30% faster.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/samr7/vanitygen";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.agpl3;
|
2013-08-28 20:59:27 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2013-05-30 11:41:29 +01:00
|
|
|
};
|
|
|
|
}
|