nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 autoPatchelfHook, 6 xclip, 7 stdenv, 8}: 9 10buildGoModule rec { 11 pname = "cloudlens"; 12 version = "0.1.4"; 13 14 src = fetchFromGitHub { 15 owner = "one2nc"; 16 repo = "cloudlens"; 17 rev = "v${version}"; 18 hash = "sha256-b0i9xaIm42RKWzzZdSAmapbmZDmTpCa4IxVsM9eSMqM="; 19 }; 20 21 vendorHash = "sha256-7TxtM0O3wlfq0PF5FGn4i+Ph7dWRIcyLjFgnnKITLGM="; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 "-X=github.com/one2nc/cloudlens/cmd.version=v${version}" 27 "-X=github.com/one2nc/cloudlens/cmd.commit=${src.rev}" 28 "-X=github.com/one2nc/cloudlens/cmd.date=1970-01-01T00:00:00Z" 29 ]; 30 31 nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook; 32 33 buildInputs = [ xclip ]; 34 35 #Some tests require internet access 36 doCheck = false; 37 38 meta = { 39 description = "K9s like CLI for AWS and GCP"; 40 homepage = "https://github.com/one2nc/cloudlens"; 41 license = lib.licenses.apsl20; 42 maintainers = with lib.maintainers; [ ByteSudoer ]; 43 mainProgram = "cloudlens"; 44 }; 45}