##// END OF EJS Templates
py3: switched to python38 by default.
py3: switched to python38 by default.

File last commit:

r989:4fa1c36e python3
r989:4fa1c36e python3
Show More
shell.nix
50 lines | 1.3 KiB | text/x-nix | NixLexer
nix: updated to 18.03 packages....
r472 # This file contains the adjustments which are desired for a development
# environment.
{ pkgs ? (import <nixpkgs> {})
py3: switched to python38 by default.
r989 , pythonPackages ? "python38Packages"
requirements: added ipdb (0.10.1) support.
r96 , doCheck ? false
initial commit
r0 }:
let
requirements: added ipdb (0.10.1) support.
r96
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 # Full runtime environment without the actual Python package
env = import ./default.nix {
nix: updated to 18.03 packages....
r472 inherit
doCheck;
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 pythonExternalOverrides = self: super: {
rhodecode-vcsserver = null;
};
nix: Propagate doCheck argument through nix files.
r34 };
initial commit
r0
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 # The python package with full runtime environment as dependency for nix-shell
package = (import ./default.nix {
inherit
doCheck;
pythonExternalOverrides = self: super: {
rhodecode-vcsserver = super.rhodecode-vcsserver.overridePythonAttrs(attrs: {
nativeBuildInputs = with self;
attrs.nativeBuildInputs ++
attrs.buildInputs ++
attrs.propagatedBuildInputs ++ [
env
pytest
ipdb
ipython
];
});
};
}).passthru.pythonPackages.rhodecode-vcsserver;
requirements: added ipdb (0.10.1) support.
r96
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 in package.overridePythonAttrs(attrs: {
postShellHook= ''
Martin Bornhold
nix: Move shell hook from default.nix -> shell.nix and set custom shell prompt.
r95 # 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\][vcsserver-shell:\w]$\[\033[0m\] "
Martin Bornhold
nix: Move shell hook from default.nix -> shell.nix and set custom shell prompt.
r95
nix: updated to 18.03 packages....
r472 # Set locale
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
nix: updated to 18.03 packages....
r472 export LC_ALL="en_US.UTF-8"
'';
initial commit
r0 })