4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
871 B
Nix
32 lines
871 B
Nix
{ buildGoPackage, fetchFromGitHub, libusb1, pkgconfig, lib, stdenv, libiconv }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "aws-okta";
|
|
version = "1.0.8";
|
|
|
|
goPackagePath = "github.com/segmentio/aws-okta";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "segmentio";
|
|
repo = "aws-okta";
|
|
rev = "v${version}";
|
|
sha256 = "14bg9rdfxkpw00phc8faz4ghiyb0j7a9qai74lidrzplzl139bzf";
|
|
};
|
|
|
|
buildFlags = [ "--tags" "release" ];
|
|
|
|
buildFlagsArray = [ "-ldflags=-X main.Version=${version}" ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libusb1 libiconv ];
|
|
|
|
meta = with lib; {
|
|
inherit version;
|
|
description = "aws-vault like tool for Okta authentication";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [imalsogreg Chili-Man];
|
|
homepage = "https://github.com/segmentio/aws-okta";
|
|
downloadPage = "https://github.com/segmentio/aws-okta";
|
|
};
|
|
}
|