From 640d4e204d62b55fe37883cbabf2ccc6f4b86c0e Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Mon, 26 Jun 2023 22:09:19 +0100 Subject: [PATCH] asymptote: make the python modules imported by xasy available at runtime --- pkgs/tools/graphics/asymptote/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix index 9950d3c56f99..38edd3050e83 100644 --- a/pkgs/tools/graphics/asymptote/default.nix +++ b/pkgs/tools/graphics/asymptote/default.nix @@ -2,7 +2,7 @@ , autoreconfHook, bison, glm, flex , freeglut, ghostscriptX, imagemagick, fftw , boehmgc, libGLU, libGL, mesa, ncurses, readline, gsl, libsigsegv -, python3Packages +, python3 , zlib, perl, curl , texLive, texinfo , darwin @@ -32,10 +32,8 @@ stdenv.mkDerivation rec { boehmgc ncurses readline gsl libsigsegv zlib perl curl texLive - ] ++ (with python3Packages; [ - python - pyqt5 - ]); + (python3.withPackages (ps: with ps; [ cson numpy pyqt5 ])) + ]; propagatedBuildInputs = [ glm