aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-27 19:18:20 +0100
committerAdrian Kummerlaender2019-10-27 19:18:20 +0100
commit6e99286c9a756272e972fe21212b094de95d36f6 (patch)
tree4c2902352789a96aa6a4c751915eb25cca8a5b7a
parent4315b5c62fe862dcacbe2a8958732c8a66bdb6e1 (diff)
downloadboltzgen-6e99286c9a756272e972fe21212b094de95d36f6.tar
boltzgen-6e99286c9a756272e972fe21212b094de95d36f6.tar.gz
boltzgen-6e99286c9a756272e972fe21212b094de95d36f6.tar.bz2
boltzgen-6e99286c9a756272e972fe21212b094de95d36f6.tar.lz
boltzgen-6e99286c9a756272e972fe21212b094de95d36f6.tar.xz
boltzgen-6e99286c9a756272e972fe21212b094de95d36f6.tar.zst
boltzgen-6e99286c9a756272e972fe21212b094de95d36f6.zip
Tidy up shell environment
-rw-r--r--shell.nix42
1 files changed, 1 insertions, 41 deletions
diff --git a/shell.nix b/shell.nix
index 63082e8..fceb740 100644
--- a/shell.nix
+++ b/shell.nix
@@ -5,59 +5,19 @@ pkgs.stdenvNoCC.mkDerivation rec {
env = pkgs.buildEnv { name = name; paths = buildInputs; };
buildInputs = let
- custom-python = let
- packageOverrides = self: super: {
- pyopencl = super.pyopencl.overridePythonAttrs(old: rec {
- buildInputs = with pkgs; [
- opencl-headers ocl-icd python37Packages.pybind11
- libGLU_combined
- ];
- # Enable OpenGL integration and fix build
- preBuild = ''
- python configure.py --cl-enable-gl
- export HOME=/tmp/pyopencl
- '';
- });
- };
- in pkgs.python3.override { inherit packageOverrides; };
-
- pyevtk = pkgs.python3.pkgs.buildPythonPackage rec {
- pname = "PyEVTK";
- version = "1.2.1";
-
- src = pkgs.fetchFromGitHub {
- owner = "paulo-herrera";
- repo = "PyEVTK";
- rev = "v1.2.1";
- sha256 = "1p2459dqvgakywvy5d31818hix4kic6ks9j4m582ypxyk5wj1ksz";
- };
-
- buildInputs = with pkgs.python37Packages; [
- numpy
- ];
-
- doCheck = false;
- };
-
- local-python = custom-python.withPackages (python-packages: with python-packages; [
+ local-python = pkgs.python3.withPackages (python-packages: with python-packages; [
numpy
sympy
- pyopencl
- pyopengl
- pyrr
Mako
- pyevtk
]);
in [
local-python
- pkgs.opencl-info
pkgs.universal-ctags
];
shellHook = ''
export NIX_SHELL_NAME="${name}"
- export PYOPENCL_COMPILER_OUTPUT=1
export PYTHONPATH="$PWD/boltzgen:$PYTHONPATH"
export PYTHONDONTWRITEBYTECODE=1
'';