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
universal-ctags: include libiconv on darwin #29938
Conversation
I have noticed that Cc: @Ericson2314 |
@@ -12,7 +12,8 @@ stdenv.mkDerivation rec { | |||
}; | |||
|
|||
nativeBuildInputs = [ pythonPackages.docutils ]; | |||
buildInputs = [ autoreconfHook pkgconfig ]; | |||
buildInputs = [ autoreconfHook pkgconfig ] ++ |
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.
autoreconfHook
and pkgconfig
should be native build inputs. I fixed this on staging so doing it here might just help us avoid a merge conflict.
@peterhoeg I'm not sure how that would work, as we need Nix-level, not just autoconf-level changes? But perhaps I'm missing something. I've seriously considered trying to build glibc without libiconv, so we can unconditionally use the separate dep everywhere. |
What I meant is that adding |
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.
nitpick
@@ -12,7 +12,8 @@ stdenv.mkDerivation rec { | |||
}; | |||
|
|||
nativeBuildInputs = [ pythonPackages.docutils ]; | |||
buildInputs = [ autoreconfHook pkgconfig ]; | |||
buildInputs = [ autoreconfHook pkgconfig ] ++ | |||
(stdenv.lib.optional stdenv.isDarwin [ libiconv ]); |
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 results in a nested list, use optional stdenv.isDarwin libiconv
or optionals stdenv.isDarwin [ libiconv ... ]
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.
Ugh, thank you!
8d35c29
to
859a4c3
Compare
Updated to (hopefully) avoid merge conflict with @Ericson2314 and to address comment from @LnL7 |
Thanks! |
Motivation for this change
Failed to compile on darwin.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)