3
0
Fork 0
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:
Sandro 2021-05-22 20:13:48 +02:00 committed by GitHub
commit 91f69cd0ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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