From c0014f0fca930d5fd5a818aa383ce6698bf4758c Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Fri, 14 Apr 2023 00:03:31 -0700 Subject: [PATCH] python3Packages.twisted: fix cross can't use emulator because shebangs break emulation --- pkgs/development/python-modules/twisted/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index 758b3f4eea0b..bcd2f6d5e06b 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -142,7 +142,7 @@ buildPythonPackage rec { # Generate Twisted's plug-in cache. Twisted users must do it as well. See # http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3 # and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for details. - postFixup = '' + postFixup = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' $out/bin/twistd --help > /dev/null '';