spice: properly test for existance of python modules

This commit is contained in:
Martin Weinelt 2022-01-23 12:57:56 +01:00
parent f681a690fb
commit 6df5d16d20
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -46,6 +46,12 @@ stdenv.mkDerivation rec {
postPatch = ''
install ${doxygen_sh} doxygen.sh
patchShebangs build-aux
# https://gitlab.freedesktop.org/spice/spice-common/-/issues/5
substituteInPlace subprojects/spice-common/meson.build \
--replace \
"cmd = run_command(python, '-m', module)" \
"cmd = run_command(python, '-c', 'import @0@'.format(module))"
'';
nativeBuildInputs = [