2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, which, gfortran, libGLU, xorg } :
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "molden";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-22 01:22:15 +00:00
|
|
|
url = "https://ftp.science.ru.nl/Molden//molden${version}.tar.gz";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "02qi16pz2wffn3cc47dpjqhfafzwfmb79waw4nnhfyir8a4h3cq1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
buildInputs = [ gfortran libGLU xorg.libX11 xorg.libXmu ];
|
|
|
|
|
|
|
|
patches = [ ./dont_register_file_types.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./makefile --replace '-L/usr/X11R6/lib' "" \
|
|
|
|
--replace '-I/usr/X11R6/include' "" \
|
|
|
|
--replace '/usr/local/' $out/ \
|
|
|
|
--replace 'sudo' "" \
|
2021-02-05 17:12:51 +00:00
|
|
|
--replace '-C surf depend' '-C surf'
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -in '/^# DO NOT DELETE THIS LINE/q;' surf/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Display and manipulate molecular structures";
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "http://www3.cmbi.umcn.nl/molden/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = {
|
|
|
|
fullName = "Free for academic/non-profit use";
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "http://www3.cmbi.umcn.nl/molden/CopyRight.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
free = false;
|
|
|
|
};
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
};
|
|
|
|
}
|