about summary refs log tree commit diff
path: root/pkgs/applications/science/chemistry/pymol
diff options
context:
space:
mode:
authorMounium <muoniurn@gmail.com>2017-02-22 01:35:09 +0100
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-02-22 01:35:09 +0100
commiteb688ac0a70870174b2d1b47feac3080538616bf (patch)
treea5cdf9438d706977f3c955a95544845c72473527 /pkgs/applications/science/chemistry/pymol
parent7bb0611e2e27b3e5b7db7c93a3635fab5f7d3306 (diff)
pymol: init at 1.8.4 (#23007)
Diffstat (limited to 'pkgs/applications/science/chemistry/pymol')
-rw-r--r--pkgs/applications/science/chemistry/pymol/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/science/chemistry/pymol/default.nix b/pkgs/applications/science/chemistry/pymol/default.nix
new file mode 100644
index 0000000000000..a0cd51ce3c7f0
--- /dev/null
+++ b/pkgs/applications/science/chemistry/pymol/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchurl, python27Packages, glew, freeglut, libpng, libxml2, tk, freetype }:
+
+let
+  version = "1.8.4.0";
+in
+python27Packages.buildPythonApplication {
+  name = "pymol-${version}";
+  src = fetchurl {
+    url = "mirror://sourceforge/project/pymol/pymol/1.8/pymol-v1.8.4.0.tar.bz2";
+    sha256 = "0yfj8g5yic9zz6f0bw2n8h6ifvgsn8qvhq84alixsi28wzppn55n";
+  };
+
+  buildInputs = [ python27Packages.numpy glew freeglut libpng libxml2 tk freetype ];
+  NIX_CFLAGS_COMPILE = "-I ${libxml2.dev}/include/libxml2";
+
+  installPhase = ''
+    python setup.py install --home=$out
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A Python-enhanced molecular graphics tool";
+    homepage = "https://www.pymol.org/";
+    license = licences.psfl;
+  };
+}