about summary refs log tree commit diff
path: root/pkgs/development/libraries/spice/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/spice/default.nix')
-rw-r--r--pkgs/development/libraries/spice/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/spice/default.nix b/pkgs/development/libraries/spice/default.nix
index ee0f6be16984b..4f639cf29f74f 100644
--- a/pkgs/development/libraries/spice/default.nix
+++ b/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 = [