-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubexporter: init at 0.6.2; maintainers: add bakito #384179
base: master
Are you sure you want to change the base?
Conversation
Some suggestions: diff --git a/pkgs/by-name/ku/kubexporter/package.nix b/pkgs/by-name/ku/kubexporter/package.nix
index c41fd976847a..efd749a93b44 100644
--- a/pkgs/by-name/ku/kubexporter/package.nix
+++ b/pkgs/by-name/ku/kubexporter/package.nix
@@ -2,6 +2,8 @@
lib,
buildGoModule,
fetchFromGitHub,
+ versionCheckHook,
+ nix-update-script,
}:
buildGoModule rec {
@@ -12,7 +14,7 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "bakito";
repo = "kubexporter";
- rev = "v${version}";
+ tag = "v${version}";
hash = "sha256-u7IiDXr9tF4gTlKrKOY21Y4E2aVA0oC0XhZYKM8Z1QE=";
};
@@ -24,11 +26,18 @@ buildGoModule rec {
"-X github.com/bakito/kubexporter/version.Version=${version}"
];
- meta = with lib; {
- description = "KubExporter allows you to export resources from kubernetes as yaml/json files.";
+ nativeInstallCheckInputs = [ versionCheckHook ];
+ versionCheckProgramArg = "--version";
+ doInstallCheck = true;
+
+ passthru.updateScript = nix-update-script { };
+
+ meta = {
+ description = "Tool for exporting Kubernetes resources as YAML or JSON files";
homepage = "https://github.com/bakito/kubexporter";
- license = licenses.asl20;
- maintainers = with maintainers; [ bakito ];
+ changelog = "https://github.com/bakito/kubexporter/releases/tag/v${version}";
+ license = lib.licenses.asl20;
+ maintainers = with lib.maintainers; [ bakito ];
mainProgram = "kubexporter";
};
} Please also make a separate commit for adding yourself into the maintainers list. |
Signed-off-by: bakito <[email protected]>
@Tert0 changed applied, separate PR for maintainer is here: #384177 |
Signed-off-by: bakito <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 384179
x86_64-linux
✅ 1 package built:
- kubexporter
@Tert0 sive this is my first pull request in this repo, what needs to be don to get it metged? |
I think the missing actions are stuck and not really important to get this merged. After a week, you can post this PR into the review-requests matrix room or the discourse thread to get the attention of someone with commit access. |
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.