-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Neovim: 0.3.8 -> 0.4.2 #68882
Neovim: 0.3.8 -> 0.4.2 #68882
Conversation
@GrahamcOfBorg build neovim |
preBuild = '' | ||
sed -i 's,\(option(WITH_SHARED_LIBUV.*\)OFF,\1ON,' CMakeLists.txt | ||
sed -i 's,\(option(BUILD_MODULE.*\)ON,\1OFF,' CMakeLists.txt | ||
sed -i 's,$''+''{INSTALL_INC_DIR},${placeholder "out"}/include/luv,' CMakeLists.txt |
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.
can't we use substituteAll instead ? better use nix abstraction tools.
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.
sed
seems more consistent with the rest of the file
@@ -273,9 +276,21 @@ with super; | |||
sed -i 's,\(option(WITH_SHARED_LIBUV.*\)OFF,\1ON,' CMakeLists.txt | |||
rm -rf deps/libuv | |||
''; | |||
}); | |||
|
|||
luv-dev = super.luv.override({ |
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.
could you add a comment explaining the difference between luv and luv-dev ? why it's not luv.dev output for instance
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.
cc @gloaming
I assume this is not a luv.dev
output, since a different build is necessary 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.
It was the case when I had tried building luv but maybe they improved it by now.
If it's a temporary package to work around luv "faulty" build system, it would be good to mention it
super happy to see this PR. I made a few comments for the sake of it :) |
a8d35c2
to
bca38e1
Compare
@GrahamcOfBorg build neovim |
Hey, thanks for this, but you used an older version of my work. We can use the shared library instead of the static one, and I put that output under the I rebased your package update onto my newer branch, please have a look: master...gloaming:neovim/0.4.2 |
@gloaming I'm getting a failure on your branch when attempting
|
Not sure if this helps, but I got neovim-nightly to work just 3 days ago. For that I packaged libluv the following way: https://termbin.com/k75a7 neovim worked fine with just putting that derivation into the buildinputs. |
Co-authored-by: Roman Volosatovs <rvolosatovs@riseup.net>
bca38e1
to
824869c
Compare
@GrahamcOfBorg build neovim |
the passtru thing looks kinda ugly but I am confident libluv system will improve so this might be a temporary wart. |
@rvolosatovs that's odd, it works for me 🤔
I was going to ask if you had some kind of overlay, but It's the same hash(!), so there's some kind of reproducibility issue I guess. Your version works because you're using ((824869c3fc0...))$ git diff neovim/0.4.2 -- pkgs/applications/editors/neovim/default.nix
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix
index d573a83a73d..6808d7115c5 100644
--- a/pkgs/applications/editors/neovim/default.nix
+++ b/pkgs/applications/editors/neovim/default.nix
@@ -79,7 +79,7 @@ in
cmakeFlags = [
"-DGPERF_PRG=${gperf}/bin/gperf"
- "-DLIBLUV_LIBRARY=${lua.pkgs.luv.libluv}/lib/lua/${lua.luaversion}/libluv.so"
+ "-DLIBLUV_LIBRARY=${lua.pkgs.luv}/lib/lua/${lua.luaversion}/luv.so"
"-DLUA_PRG=${neovimLuaEnv.interpreter}"
]
++ optional doCheck "-DBUSTED_PRG=${neovimLuaEnv}/bin/busted" If I change that line back, I get this:
Which is why I put the I guess since Neovim works with |
So what still needs to be done to merge this? |
let's merge this. The luv thing is awkward but I am confident it will be improved in the future. |
This doesn't build for me on macOS +
The error I get when building shared libraries with this PR as-is:
|
and if you change the .so by .dylib instead ? wouldn't that solve the problem ? |
Tried various combinations of looking in The only one I've found to work (not ideal, I know) is It all works fine on Linux (using |
Just wanted to mention that this PR has now made it into the |
Motivation for this change
Upstream update
Refs #64400
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @gloaming @manveru