blob: dd85bd8bbddc2f67ffc5389521dddf4da39654df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ 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";
homepage = "https://github.com/ryane/kfilt";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.ryane ];
};
}
|