···38 # Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library
39 # and linking it with cctools ld64.
40 postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
41- substituteInPlace build.rs --replace 'cmd.arg("-x")' 'cmd.arg("-S")'
42 '';
4344 checkType = "debug";
···38 # Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library
39 # and linking it with cctools ld64.
40 postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
41+ substituteInPlace build.rs --replace-fail '.arg("-x")' '.arg("-S")'
42 '';
4344 checkType = "debug";