nixpkgs/pkgs/tools/security/aws-okta/default.nix

32 lines
873 B
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ buildGoPackage, fetchFromGitHub, libusb1, pkg-config, lib, stdenv, libiconv }:
2018-08-09 14:25:04 +00:00
buildGoPackage rec {
pname = "aws-okta";
2021-01-18 10:28:24 +00:00
version = "1.0.11";
2018-08-09 14:25:04 +00:00
goPackagePath = "github.com/segmentio/aws-okta";
src = fetchFromGitHub {
owner = "segmentio";
repo = "aws-okta";
rev = "v${version}";
2021-01-18 10:28:24 +00:00
sha256 = "sha256-1cprKpIFgM3+lUEHNvda34nJTH4Ch3LtTRq/Dp6QBQ8=";
2018-08-09 14:25:04 +00:00
};
buildFlags = [ "--tags" "release" ];
2018-08-09 14:25:04 +00:00
2020-06-23 21:17:07 +00:00
buildFlagsArray = [ "-ldflags=-X main.Version=${version}" ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
2019-12-12 20:28:26 +00:00
buildInputs = [ libusb1 libiconv ];
2019-04-17 19:42:21 +00:00
meta = with lib; {
2018-08-09 14:25:04 +00:00
inherit version;
description = "aws-vault like tool for Okta authentication";
license = licenses.mit;
2020-10-20 02:53:50 +00:00
maintainers = with maintainers; [imalsogreg Chili-Man];
homepage = "https://github.com/segmentio/aws-okta";
2018-08-09 14:25:04 +00:00
downloadPage = "https://github.com/segmentio/aws-okta";
};
}