rubyPackages.ruby-libvirt: fix build with ruby 3.x
This commit is contained in:
parent
15254515d0
commit
0d6b6931b7
1 changed files with 8 additions and 0 deletions
|
@ -528,6 +528,14 @@ in
|
|||
"--with-libvirt-include=${libvirt}/include"
|
||||
"--with-libvirt-lib=${libvirt}/lib"
|
||||
];
|
||||
dontBuild = false;
|
||||
postPatch = ''
|
||||
# https://gitlab.com/libvirt/libvirt-ruby/-/commit/43543991832c9623c00395092bcfb9e178243ba4
|
||||
substituteInPlace ext/libvirt/common.c \
|
||||
--replace 'st.h' 'ruby/st.h'
|
||||
substituteInPlace ext/libvirt/domain.c \
|
||||
--replace 'st.h' 'ruby/st.h'
|
||||
'';
|
||||
};
|
||||
|
||||
ruby-lxc = attrs: {
|
||||
|
|
Loading…
Reference in a new issue