depot/third_party/nixpkgs/pkgs/by-name/wi/wireguard-vanity-keygen/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

31 lines
902 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "wireguard-vanity-keygen";
version = "0.1.0";
src = fetchFromGitHub {
owner = "axllent";
repo = "wireguard-vanity-keygen";
rev = version;
hash = "sha256-L+YssChpGNQs2MLGXul1sxVmROOWfT0aaZMepGuKmEQ=";
};
vendorHash = "sha256-kAPw5M9o99NijCC9BzYhIpzHK/8fSAJxvckaj8iRby0=";
ldflags = [ "-s" "-w" "-X main.appVersion=${version}" ];
meta = with lib; {
changelog = let
versionWithoutDots = concatStrings (splitString "." version);
in "https://github.com/axllent/wireguard-vanity-keygen/blob/develop/CHANGELOG.md#${versionWithoutDots}";
description = "WireGuard vanity key generator";
homepage = "https://github.com/axllent/wireguard-vanity-keygen";
license = licenses.mit;
maintainers = with maintainers; [ arikgrahl ];
mainProgram = "wireguard-vanity-keygen";
};
}