2021-08-18 21:08:14 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "otpauth";
|
2023-03-05 02:18:08 +00:00
|
|
|
version = "0.5.1";
|
2021-08-18 21:08:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dim13";
|
|
|
|
repo = "otpauth";
|
|
|
|
rev = "v${version}";
|
2023-03-05 02:18:08 +00:00
|
|
|
sha256 = "sha256-jeKxCuE3cA/oTEKwdrCGPchsrtaMyirTzv8oLl9gxtA=";
|
2021-08-18 21:08:14 +00:00
|
|
|
};
|
|
|
|
|
2023-03-05 02:18:08 +00:00
|
|
|
vendorHash = "sha256-jnIq7Zc2MauJReJ9a8TeqXXsvHixsBB+znmXAxcpqUQ=";
|
2021-08-18 21:08:14 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Authenticator migration decoder";
|
|
|
|
homepage = "https://github.com/dim13/otpauth";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ ereslibre ];
|
|
|
|
};
|
|
|
|
}
|