aboutsummaryrefslogtreecommitdiff
path: root/ldc_2d
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-29 21:07:35 +0100
committerAdrian Kummerlaender2019-10-29 21:07:35 +0100
commit022f427afe9bab50ece321442f6a62899771bbbc (patch)
tree0ee76857a9f42371d4b9f549ff8444fe4ee22ed1 /ldc_2d
parenta725685ddaa2eaa0711ceb51e1f74d09349d618e (diff)
downloadboltzgen_examples-022f427afe9bab50ece321442f6a62899771bbbc.tar
boltzgen_examples-022f427afe9bab50ece321442f6a62899771bbbc.tar.gz
boltzgen_examples-022f427afe9bab50ece321442f6a62899771bbbc.tar.bz2
boltzgen_examples-022f427afe9bab50ece321442f6a62899771bbbc.tar.lz
boltzgen_examples-022f427afe9bab50ece321442f6a62899771bbbc.tar.xz
boltzgen_examples-022f427afe9bab50ece321442f6a62899771bbbc.tar.zst
boltzgen_examples-022f427afe9bab50ece321442f6a62899771bbbc.zip
Merge shell environments
Diffstat (limited to 'ldc_2d')
-rw-r--r--ldc_2d/cpp/shell.nix42
-rw-r--r--ldc_2d/opencl/shell.nix45
2 files changed, 0 insertions, 87 deletions
diff --git a/ldc_2d/cpp/shell.nix b/ldc_2d/cpp/shell.nix
deleted file mode 100644
index 0b9db9f..0000000
--- a/ldc_2d/cpp/shell.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-{ pkgs ? import <nixpkgs> { }, ... }:
-
-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.1";
- sha256 = "03fv7krhgc43gfjill8wb4aafr8xi69i2yh9zr68knnmrkrb8vpi";
- };
-
- propagatedBuildInputs = with pkgs.python37Packages; [
- sympy
- numpy
- Mako
- ];
-
- doCheck = false;
- };
-
- local-python = pkgs.python3.withPackages (python-packages: with python-packages; [
- boltzgen
- ]);
-
- in [
- local-python
- pkgs.gcc9
- pkgs.cmake
- ];
-
- shellHook = ''
- export NIX_SHELL_NAME="${name}"
- export PYTHONPATH="$PWD:$PYTHONPATH"
- '';
-}
diff --git a/ldc_2d/opencl/shell.nix b/ldc_2d/opencl/shell.nix
deleted file mode 100644
index 462394e..0000000
--- a/ldc_2d/opencl/shell.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{ pkgs ? import <nixpkgs> { }, ... }:
-
-pkgs.stdenvNoCC.mkDerivation rec {
- name = "pycl-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.1";
- sha256 = "03fv7krhgc43gfjill8wb4aafr8xi69i2yh9zr68knnmrkrb8vpi";
- };
-
- 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 [
- local-python
- pkgs.opencl-info
- ];
-
- shellHook = ''
- export NIX_SHELL_NAME="${name}"
- export PYOPENCL_COMPILER_OUTPUT=1
- export PYTHONPATH="$PWD:$PYTHONPATH"
- '';
-}