mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
pythonPackages.pyev: Fix expression to work on Darwin
This commit is contained in:
parent
1f6bb81b06
commit
bae778e86c
|
@ -20067,11 +20067,18 @@ in {
|
|||
|
||||
buildInputs = [ pkgs.libev ];
|
||||
|
||||
postPatch = ''
|
||||
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; }
|
||||
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"$libev_so\"|" setup.py
|
||||
'';
|
||||
postPatch =
|
||||
if !stdenv.isDarwin
|
||||
then ''
|
||||
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; }
|
||||
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 = {
|
||||
description = "Python bindings for libev";
|
||||
|
|
Loading…
Reference in a new issue