2023-04-29 16:46:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wireguard-vanity-address";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "warner";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-SjzcVIQ9HwhP6Y/uCwXGSdZgrYcUQ9kE/Bow8pyOKNo=";
|
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
cargoHash = "sha256-0bkyopkssqH0vfaWkFC3dV2o7Q3EuDEOM8JvRB9ekLU=";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Find Wireguard VPN keypairs with a specific readable string";
|
|
|
|
homepage = "https://github.com/warner/wireguard-vanity-address";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcc32 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "wireguard-vanity-address";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|