From 2dba6db0c94ccb260f3e9345b25146ce75ccea9a Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 12 Nov 2019 22:59:03 +0100 Subject: Share boltzgen version between expressions --- lid_driven_cavity/opencl_gl_interop/shell.nix | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'lid_driven_cavity/opencl_gl_interop') diff --git a/lid_driven_cavity/opencl_gl_interop/shell.nix b/lid_driven_cavity/opencl_gl_interop/shell.nix index 42feaaf..4e64875 100644 --- a/lid_driven_cavity/opencl_gl_interop/shell.nix +++ b/lid_driven_cavity/opencl_gl_interop/shell.nix @@ -21,23 +21,7 @@ pkgs.stdenvNoCC.mkDerivation rec { }; in pkgs.python3.override { inherit packageOverrides; }; - boltzgen = pkgs.python3.pkgs.buildPythonPackage rec { - pname = "boltzgen"; - version = "0.1"; - - src = builtins.fetchGit { - url = "https://code.kummerlaender.eu/boltzgen/"; - rev = "4a2885ad3ae0396486d288df94339d0c45e6db8b"; - }; - - propagatedBuildInputs = with pkgs.python37Packages; [ - sympy - numpy - Mako - ]; - - doCheck = false; - }; + boltzgen = (import ../../boltzgen.nix { }).boltzgen custom-python; local-python = custom-python.withPackages (python-packages: with python-packages; [ boltzgen -- cgit v1.2.3