Skip to content

Instantly share code, notes, and snippets.

@rob-b
Created June 28, 2015 09:09
Show Gist options
  • Save rob-b/78365cf92e036bef62d0 to your computer and use it in GitHub Desktop.
Save rob-b/78365cf92e036bef62d0 to your computer and use it in GitHub Desktop.
Changes needed to install gevent with nix
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 910d763..3111e9a 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5744,13 +5744,14 @@ let
};
buildInputs = with self; [ pkgs.libev ];
+ CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-std=gnu99";
propagatedBuildInputs = optionals (!isPyPy) [ self.greenlet ];
meta = {
description = "Coroutine-based networking library";
homepage = http://www.gevent.org/;
license = licenses.mit;
- platforms = platforms.linux;
+ platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment