2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "otpauth";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.4.0";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dim13";
|
|
|
|
repo = "otpauth";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-LGDeNkCxVLDVpwi5VFFL0DFsf8CexI7Nc5l+l2ASHaw=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
vendorSha256 = "sha256-fwO3cmlnmuD682vGB8X06yGHZqBadeltRrsEUjQWazc=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|