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
Fix help2man.postInstall syntax error under cygwin. #49836
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.
Thanks for catching this! But I think there is a way we can fix it without a mass rebuild.
@@ -23,8 +23,9 @@ stdenv.mkDerivation rec { | |||
cat > $out/bin/help2man <<EOF | |||
#! $SHELL -e | |||
export PERL5LIB=\''${PERL5LIB:+:}$gettext_perl | |||
${stdenv.lib.optionalString stdenv.hostPlatform.isCygwin | |||
"export PATH=\''${PATH:+:}${gettext}/bin"} |
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.
The core issue is that Nix doesn't know how to handle \''
inside of ordinary double quotes. To avoid a mass rebuild, you should be able to just switch this to double quotes:
''export PATH=\''${PATH:+:}${gettext}/bin''
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.
fixed! thanks.
c2c5840
to
7fdb87a
Compare
@GrahamcOfBorg build help2man |
Success on aarch64-linux (full log) Attempted: help2man Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: help2man Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: help2man Partial log (click to expand)
|
Could this be backported to |
backport: 2e79014 |
Motivation for this change
currently fails with
if
isCygwin
is true.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)