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
htmlbeautifier: init at 1.3.1 #87928
base: master
Are you sure you want to change the base?
Conversation
Don't know why, but please note that there's a CI evaluation error. |
0d33666
to
bf6dcff
Compare
maintainers/maintainer-list.nix
Outdated
email = "maxim@ontoillogicmal.com"; | ||
github = "mvetsman"; | ||
githubId = 34720; | ||
name = "Max Vetsman"; |
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.
email = "maxim@ontoillogicmal.com"; | |
github = "mvetsman"; | |
githubId = 34720; | |
name = "Max Vetsman"; | |
email = "maxim@ontoillogical.com"; | |
github = "mveytsman"; | |
githubId = 34720; | |
name = "Max Veytsman"; |
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.
<3 thanks @shazow
exes = [ "htmlbeautifier" ]; | ||
|
||
# toString prevents the update script from being copied into the nix store | ||
passthru.updateScript = toString ./update; |
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.
Question: Do all bundlerApp packages use such an update script? The script it self seems trivial that I doubt there is no generic way of doing so. It seems there is something related to that according to https://nixos.org/nixpkgs/manual/#sec-language-ruby
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.
I found similar ones in cocoapods but I see some that don't have it, e.g ruby-zoom and solargraph.
Do you think I should remove 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.
I think cocoapods' update script is a just a bit "non-trivial" because it also handles a Gemfile-beta file for as far as I can see.
Can you try:
passthru.updateScript = bundlerUpdateScript "htmlbeautifier";
You should be able to check if this works with:
nix-shell maintainers/scripts/update.nix --argstr package htmlbeautifier
See https://nixos.org/nixpkgs/manual/#var-passthru-updateScript
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.
@doronbehar ah amazing! thanks for clarifying. I changed it as you suggested and it seems to 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.
Do all bundlerApp packages use such an update script?
Most "simple ruby packages" do, since: #64822.
b42acff
to
01fc8d7
Compare
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.
LGTM but I'm no experienced in reviewing bundler PRs. Maybe @aanderse will have something more to add.
Sorry, I can't be of help... I'm not a |
No worries! Do you know if there's anyone else we should ask for a 👀 on this PR? |
I verified that:
|
Well... I hate to do it, but I'll bug @manveru for a quick review here. |
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.
Two small issues, looks good otherwise.
description = "A normaliser/beautifier for HTML that also understands embedded Ruby, ideal for tidying up Rails templates"; | ||
homepage = "https://github.com/threedaymonk/htmlbeautifier"; | ||
license = licenses.mit; | ||
platforms = platforms.linux; |
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.
This should probably be ruby.meta.platforms
, since it's pure Ruby code and should run everywhere Ruby does?
gemfile = ./Gemfile; | ||
lockfile = ./Gemfile.lock; | ||
gemset = ./gemset.nix; |
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.
This can be expressed as gemdir = ./.;
01fc8d7
to
913cd50
Compare
913cd50
to
71946be
Compare
@manveru I'm really sorry I somehow missed this PR was still open with feedback from you until now I went back and addressed your feedback. Is this good to be accepted now? Sorry again for the hiatus! |
71946be
to
09e1c7a
Compare
@ofborg eval |
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.
your PR should have eventually two commits:
maintainers: add <me>
<package-name>: init at <version>
I marked this as stale due to inactivity. → More info |
@mveytsman the PR looks good, only the commit log is not as it should be. There should be only two commits:
|
c56097d
to
7e91825
Compare
Fixed! |
Error when testing the binary:
|
Motivation for this change
Adds htmlbeautifier an HTML formatter with Ruby/ERB support.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)