From 923ad5e83be561dcadfec113177cd7cbcaea56d9 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 19 Dec 2019 13:07:02 +0100 Subject: Basic sky rendering using the model by Nishita et al. See "Display of the earth taking into account atmospheric scattering" (Nishita et al., 1993) `bluedot.py` renders the full earth disk while rotating the sun around it. `sunrise.py` renders the rise of the sun. Physical model constants may be changed in `planets.py`. --- shell.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..5f57bc8 --- /dev/null +++ b/shell.nix @@ -0,0 +1,26 @@ +{ pkgs ? import { }, ... }: + +pkgs.stdenvNoCC.mkDerivation rec { + name = "pycl-env"; + env = pkgs.buildEnv { name = name; paths = buildInputs; }; + + buildInputs = let + local-python = pkgs.python3.withPackages (python-packages: with python-packages; [ + numpy + sympy + pyopencl setuptools + matplotlib + ]); + + in [ + local-python + pkgs.opencl-info + pkgs.universal-ctags + ]; + + shellHook = '' + export NIX_SHELL_NAME="${name}" + export PYOPENCL_COMPILER_OUTPUT=1 + export PYTHONPATH="$PWD:$PYTHONPATH" + ''; +} -- cgit v1.2.3