mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
30 lines
703 B
Nix
30 lines
703 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubectl-deprecations";
|
|
version = "1.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kubepug";
|
|
repo = "kubepug";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-VNxaYQy81U0JWd6KS0jCvMexpyWL4v1cKpjxLRkxBLE=";
|
|
};
|
|
|
|
vendorHash = "sha256-HVsaQBd7fSZp2fOpOOmlDhYrHcHqWKiYWPFLQX0azEw=";
|
|
|
|
doCheck = false;
|
|
subPackages = [ "." ];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/kubepug $out/bin/kubectl-deprecations
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A kubectl plugin to preupgrade checks";
|
|
homepage = "https://github.com/kubepug/kubepug/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tboerger ];
|
|
};
|
|
}
|