-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
redocly: 1.29.0 -> 1.34.0 #391700
base: master
Are you sure you want to change the base?
redocly: 1.29.0 -> 1.34.0 #391700
Conversation
pkgs/by-name/re/redocly/package.nix
Outdated
@@ -1,5 +1,6 @@ | |||
{ | |||
lib, | |||
pkgs, |
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 nodejs
directly, not through pkgs
.
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.
ok. Working on that
pkgs/by-name/re/redocly/package.nix
Outdated
# Add telemetry and update notice flags | ||
wrapProgram $out/bin/redocly \ | ||
--set-default REDOCLY_TELEMETRY off \ | ||
--set-default REDOCLY_SUPPRESS_UPDATE_NOTICE true | ||
''; |
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.
If we already have a custom nodejs wrapper script, then we might as well move this functionality too.
Something like this should work right?
process.env.REDOCLY_TELEMETRY = process.env.REDOCLY_TELEMETRY || "off";
process.env.REDOCLY_SUPPRESS_UPDATE_NOTICE = process.env.REDOCLY_SUPPRESS_UPDATE_NOTICE || "true ";
Then remove the makeWrapper
dependency entirely.
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 this. I hadn't considered the nodejs wrapper. Let me look at it
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.
check latest commit. Formatting fails but I'm working on it
a115a33
to
844cf85
Compare
pkgs/by-name/re/redocly/package.nix
Outdated
process.env.REDOCLY_TELEMETRY = "off"; | ||
process.env.REDOCLY_SUPPRESS_UPDATE_NOTICE = "true" |
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.
While I doubt anyone will want to override these, I think it's still good practice to allow users to do so.
pkgs/by-name/re/redocly/package.nix
Outdated
|
||
npmBuildScript = "prepare"; | ||
|
||
nativeBuildInputs = [ makeWrapper ]; | ||
nativeBuildInputs = [ ]; |
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.
Remove
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.
Done.
I've tested the package and apart from some nits, the changes look good to me. Thank you for the improvements! |
52aa50e
to
b3413ba
Compare
Thanks for the guidance. You can merge now? |
The issue with default env vars is still unresolved. Please change to something like:
|
I had not seen the comment. Fixed now |
@szlend I now wait for a merge? |
Resolves issue.
This PR updates the package to the latest release and fixes the issue with the program's naming, as seen when the
--help
option is used.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.