pythonPackages.pyev: Fix expression to work on Darwin
This commit is contained in:
parent
1f6bb81b06
commit
bae778e86c
@ -20067,10 +20067,17 @@ in {
|
|||||||
|
|
||||||
buildInputs = [ pkgs.libev ];
|
buildInputs = [ pkgs.libev ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch =
|
||||||
|
if !stdenv.isDarwin
|
||||||
|
then ''
|
||||||
libev_so=${pkgs.libev}/lib/libev.so.4
|
libev_so=${pkgs.libev}/lib/libev.so.4
|
||||||
test -f "$libev_so" || { echo "ERROR: File $libev_so does not exist, please fix nix expression for pyev"; exit 1; }
|
test -f "$libev_so" || { echo "ERROR: File $libev_so does not exist, please fix nix expression for pyev"; exit 1; }
|
||||||
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"$libev_so\"|" setup.py
|
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"$libev_so\"|" setup.py
|
||||||
|
''
|
||||||
|
else ''
|
||||||
|
libev_so=${pkgs.libev}/lib/libev.4.dylib
|
||||||
|
test -f "$libev_so" || { echo "ERROR: File $libev_so does not exist, please fix nix expression for pyev"; exit 1; }
|
||||||
|
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"$libev_so\"|" setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user