-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
bunster: init at v0.8.0 #382239
base: master
Are you sure you want to change the base?
bunster: init at v0.8.0 #382239
Conversation
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.
Otherwise LGTM. Thanks!
pkgs/by-name/bu/bunster/package.nix
Outdated
src = fetchFromGitHub { | ||
owner = "yassinebenaid"; | ||
repo = "bunster"; | ||
rev = "v${version}"; |
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.
Use tag instead please
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.
Thanks for looking over, will do!
}; | ||
|
||
vendorHash = "sha256-Gs+8J+yEVynsBte3Hnx7jnYRPa/61CIISDbMyDKhPRE="; | ||
doCheck = false; |
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.
Why no checks? They are preferred. Please enable them or add a comment stating why they don't work.
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.
checks fail on aarch64-darwin but binary still builds successfully. tests run fine when done manually and from my testing binary seems to run with no bugs asw. x86 Linux doesn't have this problem
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.
doCheck = false; | |
doCheck = !stdenv.hostPlatform.isDarwin;; |
Some suggestions: (including suggestions from the previous review) diff --git a/pkgs/by-name/bu/bunster/package.nix b/pkgs/by-name/bu/bunster/package.nix
index 7048b95c19bd..5181f4c6a2f2 100644
--- a/pkgs/by-name/bu/bunster/package.nix
+++ b/pkgs/by-name/bu/bunster/package.nix
@@ -2,6 +2,8 @@
lib,
buildGoModule,
fetchFromGitHub,
+ versionCheckHook,
+ nix-update-script,
}:
buildGoModule rec {
@@ -11,16 +13,23 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "yassinebenaid";
repo = "bunster";
- rev = "v${version}";
+ tag = "v${version}";
hash = "sha256-ZooaM9zi6tC7Y6Oks7OEtMPX0+4kd1UaBGzfNLgCj10=";
};
vendorHash = "sha256-Gs+8J+yEVynsBte3Hnx7jnYRPa/61CIISDbMyDKhPRE=";
- doCheck = false;
+ doCheck = true;
+
+ nativeInstallCheckInputs = [ versionCheckHook ];
+ doInstallCheck = true;
+ versionCheckProgramArg = "version";
+
+ passthru.updateScript = nix-update-script {};
meta = {
- description = "Compile shell scripts to static binaries.";
+ description = "Compile shell scripts to static binaries";
homepage = "https://github.com/yassinebenaid/bunster";
+ changelog = "https://github.com/yassinebenaid/bunster/releases/tag/v{version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
yunz |
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.