Merge pull request #335518 from jonathan-conder/neovim-gtk-collect-box
neovim-gtk: fix build with rustc 1.80
This commit is contained in:
commit
0eff91a668
12
pkgs/by-name/ne/neovim-gtk/collect-box.patch
Normal file
12
pkgs/by-name/ne/neovim-gtk/collect-box.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ru a/src/ui.rs b/src/ui.rs
|
||||
--- a/src/ui.rs
|
||||
+++ b/src/ui.rs
|
||||
@@ -385,7 +386,7 @@
|
||||
files_list
|
||||
.iter()
|
||||
.map(|f| misc::escape_filename(f))
|
||||
- .collect::<Box<_>>()
|
||||
+ .collect::<Box<[_]>>()
|
||||
.join(" ")
|
||||
));
|
||||
} else {
|
@ -26,6 +26,8 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
buildInputs = [ gdk-pixbuf gtk4 pango vte-gtk4 ];
|
||||
|
||||
patches = [ ./collect-box.patch ];
|
||||
|
||||
postInstall = ''
|
||||
make PREFIX=$out install-resources
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user