2021-01-15 22:18:51 +00:00
|
|
|
{ buildGoPackage, fetchFromGitHub, libusb1, pkgconfig, lib, stdenv, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|