lol
1{ fetchgit, stdenv, openssl, pcre }:
2
3stdenv.mkDerivation rec {
4 version = "0.21";
5 name = "vanitygen-${version}";
6
7 src = fetchgit {
8 url = "https://github.com/samr7/vanitygen";
9 rev = "refs/tags/${version}";
10 sha256 = "1vzfv74hhiyrrpvjca8paydx1ashgbgn5plzrx4swyzxy1xkamah";
11 };
12
13 buildInputs = [ openssl pcre ];
14
15 installPhase = ''
16 mkdir -p $out/bin
17 cp vanitygen $out/bin
18 cp keyconv $out/bin/vanitygen-keyconv
19 '';
20
21 meta = {
22 description = "Bitcoin vanity address generator";
23 longDescription= ''
24 Vanitygen can search for exact prefixes or regular expression
25 matches, so you can generate Bitcoin addresses that starts
26 with the needed mnemonic.
27
28 Vanitygen can generate regular bitcoin addresses, namecoin
29 addresses, and testnet addresses.
30
31 When searching for exact prefixes, vanitygen will ensure that
32 the prefix is possible, will provide a difficulty estimate,
33 and will run about 30% faster.
34 '';
35 homepage = "https://github.com/samr7/vanitygen";
36 license = stdenv.lib.licenses.agpl3;
37 platforms = stdenv.lib.platforms.all;
38 };
39}