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