1{ lib
2, fetchFromGitHub
3, buildGoModule
4}:
5
6buildGoModule rec {
7 pname = "otpauth";
8 version = "0.5.1";
9
10 src = fetchFromGitHub {
11 owner = "dim13";
12 repo = "otpauth";
13 rev = "v${version}";
14 sha256 = "sha256-jeKxCuE3cA/oTEKwdrCGPchsrtaMyirTzv8oLl9gxtA=";
15 };
16
17 vendorHash = "sha256-jnIq7Zc2MauJReJ9a8TeqXXsvHixsBB+znmXAxcpqUQ=";
18 doCheck = true;
19
20 meta = with lib; {
21 description = "Google Authenticator migration decoder";
22 homepage = "https://github.com/dim13/otpauth";
23 license = licenses.isc;
24 maintainers = with maintainers; [ ereslibre ];
25 };
26}