summary refs log tree commit diff
path: root/pkgs/applications/misc/vanitygen
diff options
context:
space:
mode:
authorGergely Risko <gergely@risko.hu>2013-05-30 12:41:29 +0200
committerGergely Risko <gergely@risko.hu>2013-05-30 12:41:29 +0200
commit02c1dd624ff88e8708d23fc88316ff99ad09e0fb (patch)
tree1bf29b5450ced0764ca0ac42229f5ae47addf809 /pkgs/applications/misc/vanitygen
parenta7dbbd2e25f1980ea006912c755f858be31f82c2 (diff)
downloadnixpkgs-02c1dd624ff88e8708d23fc88316ff99ad09e0fb.tar
nixpkgs-02c1dd624ff88e8708d23fc88316ff99ad09e0fb.tar.gz
nixpkgs-02c1dd624ff88e8708d23fc88316ff99ad09e0fb.tar.bz2
nixpkgs-02c1dd624ff88e8708d23fc88316ff99ad09e0fb.tar.lz
nixpkgs-02c1dd624ff88e8708d23fc88316ff99ad09e0fb.tar.xz
nixpkgs-02c1dd624ff88e8708d23fc88316ff99ad09e0fb.tar.zst
nixpkgs-02c1dd624ff88e8708d23fc88316ff99ad09e0fb.zip
Add vanitygen
Diffstat (limited to 'pkgs/applications/misc/vanitygen')
-rw-r--r--pkgs/applications/misc/vanitygen/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/vanitygen/default.nix b/pkgs/applications/misc/vanitygen/default.nix
new file mode 100644
index 00000000000..1aa3f57ecca
--- /dev/null
+++ b/pkgs/applications/misc/vanitygen/default.nix
@@ -0,0 +1,38 @@
+{ fetchurl, stdenv, openssl, pcre }:
+
+stdenv.mkDerivation rec {
+  version = "0.21";
+  name = "vanitygen-${version}";
+
+  src = fetchurl {
+    name = "vanitygen-${version}.tar.gz";
+    url = "https://github.com/samr7/vanitygen/tarball/0.21";
+    sha256 = "1lj0gi08lg0pcby5pbpi08ysynzy24qa1n1065112shkpasi0kxv";
+  };
+
+  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";
+  };
+}