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
37 lines
767 B
Nix
37 lines
767 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kfilt";
|
|
version = "0.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ryane";
|
|
repo = "kfilt";
|
|
rev = "v${version}";
|
|
hash = "sha256-TUhZKf4fJyJF/qDmvs4jqAMVTXN4MXE+YLc4FcOVlwo=";
|
|
};
|
|
|
|
vendorHash = "sha256-c77CzpE9cPyobt87uO0QlkKD+xC/tM7wOy4orM62tnI=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/ryane/kfilt/cmd.Version=${version}"
|
|
"-X github.com/ryane/kfilt/cmd.GitCommit=${src.rev}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Command-line tool that filters Kubernetes resources";
|
|
mainProgram = "kfilt";
|
|
homepage = "https://github.com/ryane/kfilt";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.ryane ];
|
|
};
|
|
}
|