mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
go-2fa: use buildGoModule (#193459)
This commit is contained in:
parent
cb0c860e24
commit
34a497196e
@ -1,10 +1,8 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
version = "1.2.0";
|
|
||||||
pname = "2fa";
|
pname = "2fa";
|
||||||
|
version = "1.2.0";
|
||||||
goPackagePath = "rsc.io/2fa";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rsc";
|
owner = "rsc";
|
||||||
@ -13,10 +11,15 @@ buildGoPackage rec {
|
|||||||
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
|
sha256 = "sha256-cB5iADZwvJQwwK1GockE2uicFlqFMEAY6xyeXF5lnUY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
deleteVendor = true;
|
||||||
|
vendorSha256 = "sha256-4h/+ZNxlJPYY0Kyu2vDE1pDXxC/kGE5JdnagWVOGzAE=";
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://rsc.io/2fa";
|
homepage = "https://rsc.io/2fa";
|
||||||
description = "Two-factor authentication on the command line";
|
description = "Two-factor authentication on the command line";
|
||||||
maintainers = with maintainers; [ rvolosatovs ];
|
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ rvolosatovs ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user