nixpkgs/pkgs/tools/security/2fa/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
601 B
Nix
Raw Normal View History

2022-10-13 16:00:36 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-09-26 08:33:51 +02:00
2022-10-13 16:00:36 +02:00
buildGoModule rec {
pname = "2fa";
2022-10-13 16:00:36 +02:00
version = "1.2.0";
2018-09-26 08:33:51 +02:00
src = fetchFromGitHub {
owner = "rsc";
repo = "2fa";
rev = "v${version}";
2021-01-19 03:57:51 +01:00
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
2018-09-26 08:33:51 +02:00
};
2022-10-13 16:00:36 +02:00
deleteVendor = true;
vendorSha256 = "sha256-4h/+ZNxlJPYY0Kyu2vDE1pDXxC/kGE5JdnagWVOGzAE=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://rsc.io/2fa";
2018-09-26 08:33:51 +02:00
description = "Two-factor authentication on the command line";
license = licenses.bsd3;
2022-10-13 16:00:36 +02:00
maintainers = with maintainers; [ rvolosatovs ];
2018-09-26 08:33:51 +02:00
};
}