5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
31 lines
902 B
Nix
31 lines
902 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "wireguard-vanity-keygen";
|
|
version = "0.0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "axllent";
|
|
repo = "wireguard-vanity-keygen";
|
|
rev = version;
|
|
hash = "sha256-K5lJSDRBf3NCs6v+HmjYJiHjfKt/6djvM847/C4qfeI=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|