depot/third_party/nixpkgs/pkgs/by-name/wi/wireguard-vanity-keygen/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

31 lines
902 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "wireguard-vanity-keygen";
version = "0.0.8";
src = fetchFromGitHub {
owner = "axllent";
repo = "wireguard-vanity-keygen";
rev = version;
hash = "sha256-qTVPPr7lmjMvUqetDupZCo8RdoBHr++0V9CB4b6Bp4Y=";
};
vendorHash = "sha256-9/waDAfHYgKh+FsGZEp7HbgI83urRDQPuvtuEKHOf58=";
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";
};
}