Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
autoPatchelfHook,
|
|
xclip,
|
|
stdenv,
|
|
}:
|
|
|
|
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 = lib.optional stdenv.hostPlatform.isLinux 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";
|
|
};
|
|
}
|