2021-08-18 23:08:14 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "otpauth";
|
2022-01-30 12:42:28 +01:00
|
|
|
version = "0.4.2";
|
2021-08-18 23:08:14 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dim13";
|
|
|
|
repo = "otpauth";
|
|
|
|
rev = "v${version}";
|
2022-01-30 12:42:28 +01:00
|
|
|
sha256 = "sha256-qSu0kGRi1es9OciN1s9Eh1Z3JkxbcKO8W5cAC7c7n0k=";
|
2021-08-18 23:08:14 +02:00
|
|
|
};
|
|
|
|
|
2022-01-31 21:10:36 +01:00
|
|
|
vendorSha256 = "sha256-TU5crhmQAhSfURdfPe/xaa3RgGyc+UFn2E+jJ0flNsg=";
|
2021-08-18 23:08:14 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Authenticator migration decoder";
|
|
|
|
homepage = "https://github.com/dim13/otpauth";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ ereslibre ];
|
|
|
|
};
|
|
|
|
}
|