<commit_before>{ fetchgit, stdenv, openssl, pcre }:

stdenv.mkDerivation rec {
  version = "0.21";
  name = "vanitygen-${version}";

  src = fetchgit {
    url = "https://github.com/samr7/vanitygen";
    rev = "refs/tags/${version}";
    sha256  = "1vzfv74hhiyrrpvjca8paydx1ashgbgn5plzrx4swyzxy1xkamah";
  };

  buildInputs = [ openssl pcre ];

  installPhase = ''
    ensureDir $out/bin
    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";
      license = "AGPLv3";<commit_msg>Add platforms meta attribute to vanitygen<commit_after>{ fetchgit, stdenv, openssl, pcre }:

stdenv.mkDerivation rec {
  version = "0.21";
  name = "vanitygen-${version}";

  src = fetchgit {
    url = "https://github.com/samr7/vanitygen";
    rev = "refs/tags/${version}";
    sha256  = "1vzfv74hhiyrrpvjca8paydx1ashgbgn5plzrx4swyzxy1xkamah";
  };

  buildInputs = [ openssl pcre ];

  installPhase = ''
    ensureDir $out/bin
    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";
      license = "AGPLv3";
      platforms = stdenv.lib.platforms.all;
{'fraction_non_alphanumeric': 0.09323503902862099, 'fraction_numerical': 0.01647875108412836, 'mean_word_length': 2.9101694915254237, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3390797', 'n_tokens_mistral': 741, 'n_tokens_neox': 708, 'n_words': 204}