nixpkgs/pkgs/by-name/cl/cloudlens/package.nix
Soussi Mohamed Nour 65d3877a97
cloudlens: init at 0.1.4 (#326310)
Co-authored-by: ByteSudoer <ByteSudoer@users.noreply.github.com>
2024-08-06 10:39:14 +02:00

45 lines
978 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, autoPatchelfHook
, xclip
,
}:
buildGoModule rec {
pname = "cloudlens";
version = "0.1.4";
src = fetchFromGitHub {
owner = "one2nc";
repo = "cloudlens";
rev = "v${version}";
hash = "sha256-b0i9xaIm42RKWzzZdSAmapbmZDmTpCa4IxVsM9eSMqM=";
};
vendorHash = "sha256-7TxtM0O3wlfq0PF5FGn4i+Ph7dWRIcyLjFgnnKITLGM=";
ldflags = [
"-s"
"-w"
"-X=github.com/one2nc/cloudlens/cmd.version=v${version}"
"-X=github.com/one2nc/cloudlens/cmd.commit=${src.rev}"
"-X=github.com/one2nc/cloudlens/cmd.date=1970-01-01T00:00:00Z"
];
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ xclip ];
#Some tests require internet access
doCheck = false;
meta = {
description = "K9s like CLI for AWS and GCP";
homepage = "https://github.com/one2nc/cloudlens";
license = lib.licenses.apsl20;
maintainers = with lib.maintainers; [ ByteSudoer ];
mainProgram = "cloudlens";
};
}