{ pkgs ? import { }, ... }: pkgs.stdenvNoCC.mkDerivation rec { name = "boltzgen-env"; env = pkgs.buildEnv { name = name; paths = buildInputs; }; buildInputs = let boltzgen = pkgs.python3.pkgs.buildPythonPackage rec { pname = "boltzgen"; version = "0.1"; src = pkgs.fetchFromGitHub { owner = "KnairdA"; repo = "boltzgen"; rev = "v0.1.2"; sha256 = "1amsp45iq36vn63x7xqzj498hr5k9c4yj40wjccylwp9m2w14s8f"; }; propagatedBuildInputs = with pkgs.python37Packages; [ sympy numpy Mako ]; doCheck = false; }; local-python = pkgs.python3.withPackages (python-packages: with python-packages; [ boltzgen numpy pyopencl setuptools matplotlib ]); in with pkgs; [ local-python opencl-info gcc9 cmake ]; shellHook = '' export NIX_SHELL_NAME="${name}" export PYOPENCL_COMPILER_OUTPUT=1 export PYTHONPATH="$PWD:$PYTHONPATH" ''; }