rubyPackages.ruby-libvirt: fix build with ruby 3.x

This commit is contained in:
J. Neto 2021-05-19 20:43:29 -03:00
parent 15254515d0
commit 0d6b6931b7

View file

@ -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: {