mach-nix/shell.nix

32 lines
755 B
Nix
Raw Normal View History

2020-10-09 15:18:34 +00:00
{
pkgs ? import (import ./mach_nix/nix/nixpkgs-src.nix) { config = {}; },
pypiData ? (import ./mach_nix/nix/deps-db-and-fetcher.nix {
inherit pkgs;
}).pypi_deps_db_src,
chondaChannelsJson ? import ./mach_nix/nix/conda-channels.nix {
providers = { _default = [ "conda/main" "conda/r" "conda/conda-forge"]; };
},
2020-10-09 15:18:34 +00:00
...
}:
let
2021-06-09 06:11:17 +00:00
pythonWithPkgs = import ./mach_nix/nix/python.nix {
inherit pkgs;
dev = true;
};
in
2021-06-09 06:11:17 +00:00
pkgs.mkShell {
buildInputs =
[ pythonWithPkgs ]
++
(with pkgs; [
nix-prefetch-git
parallel
]);
2020-04-22 09:28:58 +00:00
shellHook = ''
export PYTHONPATH=$(pwd)/
2021-06-06 07:57:04 +00:00
export PYPI_DATA=${pypiData}
export CONDA_DATA=${chondaChannelsJson.condaChannelsJson}
2021-03-12 05:31:06 +00:00
git config core.hooksPath ./git-hooks
2020-04-22 09:28:58 +00:00
'';
}