blob: fceb7403e8ca19ee66f59aa35ca9f708624b1c45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ pkgs ? import <nixpkgs> { }, ... }:
pkgs.stdenvNoCC.mkDerivation rec {
name = "boltzgen-env";
env = pkgs.buildEnv { name = name; paths = buildInputs; };
buildInputs = let
local-python = pkgs.python3.withPackages (python-packages: with python-packages; [
numpy
sympy
Mako
]);
in [
local-python
pkgs.universal-ctags
];
shellHook = ''
export NIX_SHELL_NAME="${name}"
export PYTHONPATH="$PWD/boltzgen:$PYTHONPATH"
export PYTHONDONTWRITEBYTECODE=1
'';
}
|