Skip to content

Instantly share code, notes, and snippets.

@ThoenigAdrian
Created March 28, 2020 22:01
Show Gist options
  • Save ThoenigAdrian/fd99516dc497730afca8cab83f5f685c to your computer and use it in GitHub Desktop.
Save ThoenigAdrian/fd99516dc497730afca8cab83f5f685c to your computer and use it in GitHub Desktop.
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