2018-02-24 12:59:47 +00:00
|
|
|
{ stdenv, fetchurl, which, gfortran, libGLU, xorg } :
|
2018-01-16 07:00:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 08:35:34 +01:00
|
|
|
version = "6.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "molden";
|
2018-01-16 07:00:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/molden${version}.tar.gz";
|
2019-08-15 08:35:34 +01:00
|
|
|
sha256 = "01m5p7v5pz1fi77var50sp1bzlvdckwr6kn4wanvic2jmvgp9q5n";
|
2018-01-16 07:00:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ which ];
|
2018-02-24 12:59:47 +00:00
|
|
|
buildInputs = [ gfortran libGLU xorg.libX11 xorg.libXmu ];
|
2018-01-16 07:00:54 +00:00
|
|
|
|
2018-08-18 19:32:12 +01:00
|
|
|
patches = [ ./dont_register_file_types.patch ];
|
|
|
|
|
2018-01-16 07:00:54 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|