2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, qt4, zlib, eigen, openbabel, pkg-config, libGLU, libGL, libX11, doxygen }:
|
2011-08-15 19:05:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-18 12:07:14 +00:00
|
|
|
name = "avogadro-1.1.1";
|
2011-08-15 19:05:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-16 00:39:11 +01:00
|
|
|
url = "mirror://sourceforge/avogadro/${name}.tar.bz2";
|
2013-12-18 12:07:14 +00:00
|
|
|
sha256 = "050ag9p4vg7jg8hj1wqfv7lsm6ar2isxjw2vw85s49vsl7g7nvzy";
|
2011-08-15 19:05:39 +01:00
|
|
|
};
|
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ qt4 eigen zlib openbabel libGL libGLU libX11 ];
|
2011-08-15 19:05:39 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config doxygen ];
|
2011-08-15 19:05:39 +01:00
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-include ${libGLU.dev}/include/GL/glu.h";
|
2012-01-14 18:03:41 +00:00
|
|
|
|
2019-01-04 19:33:50 +00:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://data.gpo.zugaina.org/fusion809/sci-chemistry/avogadro/files/avogadro-1.1.0-xlibs.patch";
|
2019-01-04 19:33:50 +00:00
|
|
|
sha256 = "1p113v19z3zwr9gxj2k599f8p97a8rwm93pa4amqvd0snn31mw0k";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 23:21:19 +00:00
|
|
|
meta = with lib; {
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "Molecule editor and visualizer";
|
2021-01-17 23:21:19 +00:00
|
|
|
maintainers = with maintainers; [ danielbarter ];
|
|
|
|
platforms = platforms.mesaPlatforms;
|
2011-08-15 19:05:39 +01:00
|
|
|
};
|
|
|
|
}
|