summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@gmail.com>2018-01-15 23:00:54 -0800
committerMarkus Kowalewski <markus.kowalewski@gmail.com>2018-01-15 23:06:41 -0800
commit1c1e49a5c54b588e263ae8e703c03e744bd92a75 (patch)
tree39005010c7ba25b0f711dbb283a0f4ea88c38067
parent608eaeaeab10593a3f661e9e1012286febbaeb45 (diff)
downloadnixpkgs-1c1e49a5c54b588e263ae8e703c03e744bd92a75.tar
nixpkgs-1c1e49a5c54b588e263ae8e703c03e744bd92a75.tar.gz
nixpkgs-1c1e49a5c54b588e263ae8e703c03e744bd92a75.tar.bz2
nixpkgs-1c1e49a5c54b588e263ae8e703c03e744bd92a75.tar.lz
nixpkgs-1c1e49a5c54b588e263ae8e703c03e744bd92a75.tar.xz
nixpkgs-1c1e49a5c54b588e263ae8e703c03e744bd92a75.tar.zst
nixpkgs-1c1e49a5c54b588e263ae8e703c03e744bd92a75.zip
molden: init at 5.7
-rw-r--r--pkgs/applications/science/chemistry/molden/default.nix42
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/science/chemistry/molden/default.nix b/pkgs/applications/science/chemistry/molden/default.nix
new file mode 100644
index 00000000000..98499ca009a
--- /dev/null
+++ b/pkgs/applications/science/chemistry/molden/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchurl, which, gfortran, mesa_glu, xorg } :
+
+stdenv.mkDerivation rec {
+  version = "5.7";
+  name = "molden-${version}";
+
+  src = fetchurl {
+    url = "ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/molden${version}.tar.gz";
+    sha256 = "0gaq11gm09ax25lvgfrvxv9dxvi76hps116fp6k7sqgvdd68vf0s";
+  };
+
+  nativeBuildInputs = [ which ];
+  buildInputs = [ gfortran mesa_glu xorg.libX11 xorg.libXmu ];
+
+  postPatch = ''
+     substituteInPlace ./makefile --replace '-L/usr/X11R6/lib'  "" \
+                                  --replace '-I/usr/X11R6/include' "" \
+                                  --replace '/usr/local/' $out/ \
+                                  --replace 'sudo' "" \
+				                          --replace '-C surf depend' '-C surf'
+     sed -in '/^# DO NOT DELETE THIS LINE/q;' surf/Makefile
+  '';
+
+  preInstall = ''
+     mkdir -p $out/bin
+  '';
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+     description = "Display and manipulate molecular structures";
+     homepage = http://www.cmbi.ru.nl/molden/;
+     license = {
+       fullName = "Free for academic/non-profit use";
+       url = http://www.cmbi.ru.nl/molden/CopyRight.html;
+       free = false;
+     };
+     platforms = platforms.linux;
+     maintainers = with maintainers; [ markuskowa ];
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index eceb8e1b44b..46e8c38c4e7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3511,6 +3511,8 @@ with pkgs;
 
   modsecurity_standalone = callPackage ../tools/security/modsecurity { };
 
+  molden = callPackage ../applications/science/chemistry/molden { };
+
   molly-guard = callPackage ../os-specific/linux/molly-guard { };
 
   moneyplex = callPackage ../applications/office/moneyplex { };