Created
March 28, 2020 22:01
-
-
Save ThoenigAdrian/fd99516dc497730afca8cab83f5f685c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
let | |
python = python37; | |
in | |
pkgs.mkShell { | |
name = "pip-env"; | |
buildInputs = with pkgs; [ | |
gmp5 | |
libffi | |
]; | |
src = null; | |
shellHook = '' | |
# Allow the use of wheels. | |
SOURCE_DATE_EPOCH=$(date +%s) | |
export PYTHONPATH=`pwd`/$VENV/${python.sitePackages}/:$PYTHONPATH | |
export LD_LIBRARY_PATH=${lib.makeLibraryPath [libffi gmp5 stdenv.cc.cc]} | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment