2020-04-24 23:36:52 +00:00
|
|
|
{ buildGoPackage, fetchFromGitHub, libusb1, pkgconfig, stdenv, libiconv }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "aws-okta";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.0.6";
|
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-03 02:18:15 +00:00
|
|
|
sha256 = "1nhcqj3vhdgk0a0smmyqphjw2slcvqbb8xd8bx506j8h8x84p6yf";
|
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";
|
|
|
|
};
|
|
|
|
}
|