https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
26 lines
784 B
Nix
26 lines
784 B
Nix
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "awless";
|
|
version = "0.1.11";
|
|
|
|
goPackagePath = "github.com/wallix/awless";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wallix";
|
|
repo = "awless";
|
|
rev = "v${version}";
|
|
sha256 = "187i21yrm10r3f5naj3jl0rmydr5dkhmdhxs90hhf8hjp59a89kg";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/wallix/awless/";
|
|
description = "A Mighty CLI for AWS";
|
|
platforms = with platforms; linux ++ darwin;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ pradeepchhetri swdunlop ];
|
|
# asm: InitTextSym double init for "".Syscall
|
|
# panic: invalid use of LSym - NewFuncInfo with Extra of type *obj.FuncInfo
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
|
};
|
|
}
|