rubyPackages.ruby-terminfo: fix ruby 3 build

`rubyio.h` was a backwards compatibility hack, removed in recent versions.
Use `ruby/io.h` instead.
`rb_cData` was deprecated in https://bugs.ruby-lang.org/issues/18433 and
removed in Ruby 3.2.
This commit is contained in:
Stanisław Pitucha 2023-05-20 16:58:39 +10:00
parent 48a0fb7aab
commit b0f92293e9

View file

@ -649,6 +649,13 @@ in
"--with-cflags=-I${ncurses.dev}/include"
"--with-ldflags=-L${ncurses.out}/lib"
];
dontBuild = false;
postPatch = ''
substituteInPlace extconf.rb --replace 'rubyio.h' 'ruby/io.h'
substituteInPlace terminfo.c \
--replace 'rubyio.h' 'ruby/io.h' \
--replace 'rb_cData' 'rb_cObject'
'';
};
ruby-vips = attrs: {