2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "otpauth";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "0.5.0";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dim13";
|
|
|
|
repo = "otpauth";
|
|
|
|
rev = "v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-toFBkUssU10ejoZzWnrm5o2P0p5Oq8kKP4vb2ASDC0s=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
vendorSha256 = "sha256-jnIq7Zc2MauJReJ9a8TeqXXsvHixsBB+znmXAxcpqUQ=";
|
2021-08-22 07:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|