##// END OF EJS Templates
py3: packaging changes to build python37 packages, and make pip2nix work.
py3: packaging changes to build python37 packages, and make pip2nix work.

File last commit:

r981:55389aab python3
r981:55389aab python3
Show More
shell-generate.nix
62 lines | 1.3 KiB | text/x-nix | NixLexer
/ pkgs / shell-generate.nix
nix: updated to 18.03 packages....
r472 { pkgs ? (import <nixpkgs> {})
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 , pythonPackages ? "python37Packages"
nix: updated to 18.03 packages....
r472 }:
with pkgs.lib;
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 let
_pythonPackages = pythonPackages;
in
nix: updated to 18.03 packages....
r472 let
pythonPackages = getAttr _pythonPackages pkgs;
pip2nix = import ./nix-common/pip2nix.nix {
inherit
pkgs
pythonPackages;
};
in
pkgs.stdenv.mkDerivation {
name = "pip2nix-generated";
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970
nix: updated to 18.03 packages....
r472 buildInputs = [
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 # Allows to generate python packages
nix: updated to 18.03 packages....
r472 pip2nix.pip2nix
pip2nix: cleanups and NEW package
r975 pip2nix.pip
pip2nix.pip-tools
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 pip2nix.cython
pip2nix.flit
pip2nix: cleanups and NEW package
r975
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 # compile using ffi
pkgs.libffi
nix: updated to 18.03 packages....
r472 pkgs.apr
pkgs.aprutil
];
shellHook = ''
runHook preShellHook
echo "Setting SVN_* variables"
export SVN_LIBRARY_PATH=${pkgs.subversion}/lib
export SVN_HEADER_PATH=${pkgs.subversion.dev}/include
runHook postShellHook
'';
preShellHook = ''
echo "Starting Generate Shell"
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 # set unpack source date to 1980 to fix ZIP problems that does not support <1980
export SOURCE_DATE_EPOCH=315532800
export TMPDIR=/tmp
nix: generate shell fix env flags.
r971 export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
export LC_ALL="en_US.UTF-8"
pip2nix: cleanups and NEW package
r975 export PYCURL_SSL_LIBRARY=openssl
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970
nix: updated to 18.03 packages....
r472 # Custom prompt to distinguish from other dev envs.
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 export PS1="\n\[\033[1;32m\][pip2nix-generate-shell]$\[\033[0m\] "
nix: updated to 18.03 packages....
r472 '';
}