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
36 lines
918 B
Nix
36 lines
918 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
bash,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubectl-neat";
|
|
version = "2.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "itaysk";
|
|
repo = "kubectl-neat";
|
|
rev = "v${version}";
|
|
hash = "sha256-j8v0zJDBqHzmLamIZPW9UvMe9bv/m3JUQKY+wsgMTFk=";
|
|
};
|
|
|
|
vendorHash = "sha256-vGXoYR0DT9V1BD/FN/4szOal0clsLlqReTFkAd2beMw=";
|
|
|
|
postBuild = ''
|
|
# Replace path to bash in a script
|
|
# Without this change, there's a problem when running tests
|
|
sed 's,#!/bin/bash,#!${bash}/bin/bash,' -i test/kubectl-stub
|
|
'';
|
|
|
|
meta = {
|
|
description = "Clean up Kubernetes yaml and json output to make it readable";
|
|
mainProgram = "kubectl-neat";
|
|
homepage = "https://github.com/itaysk/kubectl-neat";
|
|
changelog = "https://github.com/itaysk/kubectl-neat/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.koralowiec ];
|
|
};
|
|
}
|