about summary refs log tree commit diff
path: root/pkgs/applications/science/chemistry
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-06-02 21:55:16 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-06-02 21:55:16 +0100
commitc972f01e2d670f9483a980312c0e12b81094cebb (patch)
treebf876022f0b7904527b5c64699bdba02061e58d0 /pkgs/applications/science/chemistry
parent2a1c535b7ed8cf294b559fd76e4ca2b8c872e4a3 (diff)
downloadnixlib-c972f01e2d670f9483a980312c0e12b81094cebb.tar
nixlib-c972f01e2d670f9483a980312c0e12b81094cebb.tar.gz
nixlib-c972f01e2d670f9483a980312c0e12b81094cebb.tar.bz2
nixlib-c972f01e2d670f9483a980312c0e12b81094cebb.tar.lz
nixlib-c972f01e2d670f9483a980312c0e12b81094cebb.tar.xz
nixlib-c972f01e2d670f9483a980312c0e12b81094cebb.tar.zst
nixlib-c972f01e2d670f9483a980312c0e12b81094cebb.zip
pymol: set PYTHONPATH in a future way
Diffstat (limited to 'pkgs/applications/science/chemistry')
-rw-r--r--pkgs/applications/science/chemistry/pymol/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/applications/science/chemistry/pymol/default.nix b/pkgs/applications/science/chemistry/pymol/default.nix
index 200d00395e2a..ed208014f7d9 100644
--- a/pkgs/applications/science/chemistry/pymol/default.nix
+++ b/pkgs/applications/science/chemistry/pymol/default.nix
@@ -1,4 +1,9 @@
-{ stdenv, fetchurl, makeDesktopItem, python3Packages, glew, freeglut, libpng, libxml2, tk, freetype }:
+{ stdenv, fetchurl, makeDesktopItem
+, python3, python3Packages
+, glew, freeglut, libpng, libxml2, tk, freetype }:
+
+
+with stdenv.lib;
 
 let
   pname = "pymol";
@@ -33,13 +38,12 @@ python3Packages.buildPythonApplication {
     runHook postInstall
   '';
 
-  postInstall = ''
+  postInstall = with python3Packages; ''
     wrapProgram $out/bin/pymol \
-      --prefix PYTHONPATH : ${python3Packages.Pmw}/lib/python3.6/site-packages \
-      --prefix PYTHONPATH : ${python3Packages.tkinter}/lib/python3.6/site-packages
+      --prefix PYTHONPATH : ${makeSearchPathOutput "lib" python3.sitePackages [ Pmw tkinter ]}
   '';
 
-  meta = with stdenv.lib; {
+  meta = {
     description = description;
     homepage = "https://www.pymol.org/";
     license = licenses.psfl;