lol

python39Packages.cffi: move prePatch to postPatch to not break patches

authored by

Sandro Jäckel and committed by
Martin Weinelt
f0719291 d52b53fd

+5 -4
+5 -4
pkgs/development/python-modules/cffi/default.nix
··· 19 19 20 20 propagatedBuildInputs = [ pycparser ]; 21 21 22 - prePatch = lib.optionalString stdenv.isDarwin '' 22 + postPatch = lib.optionalString stdenv.isDarwin '' 23 23 # Remove setup.py impurities 24 - substituteInPlace setup.py --replace "'-iwithsysroot/usr/include/ffi'" "" 25 - substituteInPlace setup.py --replace "'/usr/include/ffi'," "" 26 - substituteInPlace setup.py --replace '/usr/include/libffi' '${lib.getDev libffi}/include' 24 + substituteInPlace setup.py \ 25 + --replace "'-iwithsysroot/usr/include/ffi'" "" \ 26 + --replace "'/usr/include/ffi'," "" \ 27 + --replace '/usr/include/libffi' '${lib.getDev libffi}/include' 27 28 ''; 28 29 29 30 # The tests use -Werror but with python3.6 clang detects some unreachable code.