forked from mirrors/nixpkgs
Merge pull request #123445 from jnetod/zhf-ruby-libvirt
rubyPackages.ruby-libvirt: fix build with ruby 3.x
This commit is contained in:
commit
91f69cd0ad
|
@ -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