From e14aabb3f6e12077fa3450b5fb6f1260e70e1e9c Mon Sep 17 00:00:00 2001 From: Markus Hauck Date: Fri, 20 May 2022 11:30:47 +0200 Subject: [PATCH] awsls: init at 0.11.0 --- pkgs/tools/admin/awsls/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/admin/awsls/default.nix diff --git a/pkgs/tools/admin/awsls/default.nix b/pkgs/tools/admin/awsls/default.nix new file mode 100644 index 000000000000..1b4657b9dbf6 --- /dev/null +++ b/pkgs/tools/admin/awsls/default.nix @@ -0,0 +1,28 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "awsls"; + version = "0.11.0"; + + src = fetchFromGitHub { + owner = "jckuester"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-iy9tohmVUtNXYVfe6pZ+pbbLlcK6Fu1GgzTWMD+3xP0="; + }; + + vendorSha256 = "sha256-ZyMO+KCqoePF6MqHFt8X4tZR4nBhuSPgJDrX+emM6jc="; + + ldflags = + let t = "github.com/jckuester/awsls/internal"; + in [ "-s" "-w" "-X ${t}.version=${version}" "-X ${t}.commit=${src.rev}" "-X ${t}.date=unknown" ]; + + doCheck = false; + + meta = with lib; { + description = "A list command for AWS resources"; + homepage = "https://github.com/jckuester/awsls"; + license = licenses.mit; + maintainers = [ maintainers.markus1189 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97e4929d42ed..e020d2da5af5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2560,6 +2560,8 @@ with pkgs; aws_mturk_clt = callPackage ../tools/misc/aws-mturk-clt { }; + awsls = callPackage ../tools/admin/awsls { }; + awstats = callPackage ../tools/system/awstats { }; awsweeper = callPackage ../tools/admin/awsweeper { };