From 4071a530fec17f53dab32bd3d38cd6058fa15220 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Wed, 6 Nov 2024 22:23:41 -0500 Subject: [PATCH] kubetrim: init at 0.0.1 --- pkgs/by-name/ku/kubetrim/package.nix | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ku/kubetrim/package.nix diff --git a/pkgs/by-name/ku/kubetrim/package.nix b/pkgs/by-name/ku/kubetrim/package.nix new file mode 100644 index 0000000000000..a4caf6c5f2c12 --- /dev/null +++ b/pkgs/by-name/ku/kubetrim/package.nix @@ -0,0 +1,34 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + name = "kubetrim"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "alexellis"; + repo = "kubetrim"; + rev = "v${version}"; + hash = "sha256-fX8CbId2ArJlnGkevCSB7eE6Ovs8vJR9+l//k4DgvK4="; + }; + + vendorHash = "sha256-m9OuVFlD4F170Q6653HdvUhdULjR2cAttLsUN03XIXo="; + + ldflags = [ + "-s" + "-w" + "-X github.com/alexellis/kubetrim/pkg.Version=${version}" + ]; + + meta = { + description = "Trim your KUBECONFIG automatically"; + homepage = "https://github.com/alexellis/kubetrim"; + changelog = "https://github.com/alexellis/kubetrim/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bbigras ]; + mainProgram = "kubetrim"; + }; +}