blob: a38699cf0ddc32195fe6ae46d60387bdb2fba257 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ 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";
};
}
|