spice: properly test for existance of python modules

main
Martin Weinelt 2 years ago
parent f681a690fb
commit 6df5d16d20
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
  1. 6
      pkgs/development/libraries/spice/default.nix

@ -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 = [

Loading…
Cancel
Save