2020-04-24 23:36:52 +00:00
|
|
|
{ buildGoPackage, fetchFromGitHub, libusb1, pkgconfig, stdenv, libiconv }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "aws-okta";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "1.0.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/segmentio/aws-okta";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "segmentio";
|
|
|
|
repo = "aws-okta";
|
|
|
|
rev = "v${version}";
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "14bg9rdfxkpw00phc8faz4ghiyb0j7a9qai74lidrzplzl139bzf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlags = [ "--tags" "release" ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-X main.Version=${version}" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libusb1 libiconv ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
description = "aws-vault like tool for Okta authentication";
|
|
|
|
license = licenses.mit;
|
2020-10-20 17:27:49 +00:00
|
|
|
maintainers = with maintainers; [imalsogreg Chili-Man];
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/segmentio/aws-okta";
|
|
|
|
downloadPage = "https://github.com/segmentio/aws-okta";
|
|
|
|
};
|
|
|
|
}
|