-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
jwhois: fix path to lynx in $lynx/etc/jwhois.conf #8696
Conversation
|
||
stdenv.mkDerivation { | ||
name = "jwhois-4.0"; | ||
|
||
|
||
lynx = pkgs.lynx; |
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 you pass lynx
as an argument instead of pkgs
you do not need this line.
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 fixed in latest.
9eefa4e
to
20c9110
Compare
postInstall = "ln -s jwhois $out/bin/whois"; | ||
postInstall = '' | ||
ln -s jwhois $out/bin/whois | ||
sed -i -e "s|/usr/bin/lynx|$lynx/bin/lynx|g" $out/etc/jwhois.conf |
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 don't want to nitpick, but you can use
sed -i -e "s|/usr/bin/lynx|${lynx}/bin/lynx|g" $out/etc/jwhois.conf
(not the curly braces). That way you do not need inherit lynx;
and the specification of the build inputs.
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 I didn't know about that gem. Updated PR. Thanks.
Fixes issues found when jwhois attempts to launch terminal browser (lynx) for HTTP whois queries, for example: $ whois blah.io [Querying http://www.io.io/cgi-bin/whois] [HTTP: Unable to run web browser: /usr/bin/lynx: No such file or directory] Tested via: grep lynx \ /nix/store/bymgmn2vvw1n7nbb1isy87xg94s8f2ml-jwhois-4.0/etc/jwhois.conf \ | cut -f2 -d'"' \ | xargs stat -t
Pushed. Such a simple fix lying here so long. |
Close #8696. Fixes issues found when jwhois attempts to launch terminal browser (lynx) for HTTP whois queries, for example: $ whois blah.io [Querying http://www.io.io/cgi-bin/whois] [HTTP: Unable to run web browser: /usr/bin/lynx: No such file or directory] Tested via: grep lynx \ /nix/store/bymgmn2vvw1n7nbb1isy87xg94s8f2ml-jwhois-4.0/etc/jwhois.conf \ | cut -f2 -d'"' \ | xargs stat -t (cherry picked from commit a9e2cf0)
Close NixOS#8696. Fixes issues found when jwhois attempts to launch terminal browser (lynx) for HTTP whois queries, for example: $ whois blah.io [Querying http://www.io.io/cgi-bin/whois] [HTTP: Unable to run web browser: /usr/bin/lynx: No such file or directory] Tested via: grep lynx \ /nix/store/bymgmn2vvw1n7nbb1isy87xg94s8f2ml-jwhois-4.0/etc/jwhois.conf \ | cut -f2 -d'"' \ | xargs stat -t (cherry picked from commit a9e2cf0)
Fixes issues found when jwhois attempts to launch terminal browser (lynx) for HTTP whois queries, for example:
Tested via:
Should return with exit code 0.