summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-06-26 22:09:19 +0100
committerVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-06-26 22:09:19 +0100
commit640d4e204d62b55fe37883cbabf2ccc6f4b86c0e (patch)
tree05ced7cae5f2c9dc65902c08d71ebe8eebf4feaf
parentc44ab108b2fc705f516fef6b4b4de42b29715f11 (diff)
downloadnixpkgs-640d4e204d62b55fe37883cbabf2ccc6f4b86c0e.tar
nixpkgs-640d4e204d62b55fe37883cbabf2ccc6f4b86c0e.tar.gz
nixpkgs-640d4e204d62b55fe37883cbabf2ccc6f4b86c0e.tar.bz2
nixpkgs-640d4e204d62b55fe37883cbabf2ccc6f4b86c0e.tar.lz
nixpkgs-640d4e204d62b55fe37883cbabf2ccc6f4b86c0e.tar.xz
nixpkgs-640d4e204d62b55fe37883cbabf2ccc6f4b86c0e.tar.zst
nixpkgs-640d4e204d62b55fe37883cbabf2ccc6f4b86c0e.zip
asymptote: make the python modules imported by xasy available at runtime
-rw-r--r--pkgs/tools/graphics/asymptote/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix
index 9950d3c56f9..38edd3050e8 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