Merge pull request #232960 from viraptor/terminfo-fix

rubyPackages.ruby-terminfo: fix ruby 3 build
This commit is contained in:
Stanisław Pitucha 2023-05-21 08:48:52 +10:00 committed by GitHub
commit 9ef4289e75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -658,6 +658,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: {