-
-
Save exarkun/c5596032b841d470886390d4b5468495 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
let pkgs = import <nixpkgs> {}; | |
in pkgs.mkShell { | |
buildInputs = [ | |
pkgs.pythonPackages.pip | |
]; | |
propagatedBuildInputs = [ | |
pkgs.libffi | |
pkgs.openssl | |
]; | |
shellHook = '' | |
alias pip="PIP_PREFIX='$(pwd)/_build/pip_packages' \pip" | |
export PYTHONPATH="$(pwd)/_build/pip_packages/lib/python2.7/site-packages:$PYTHONPATH" | |
export PATH="$(pwd)/_build/pip_packages/bin:$PATH" | |
unset SOURCE_DATE_EPOCH | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment