2018-02-24 14:12:44 +01:00
|
|
|
{ stdenv, fetchurl, cmake, qt4, zlib, eigen, openbabel, pkgconfig, libGLU_combined, libX11, doxygen }:
|
2011-08-15 20:05:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-18 13:07:14 +01:00
|
|
|
name = "avogadro-1.1.1";
|
2011-08-15 20:05:39 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-16 01:39:11 +02:00
|
|
|
url = "mirror://sourceforge/avogadro/${name}.tar.bz2";
|
2013-12-18 13:07:14 +01:00
|
|
|
sha256 = "050ag9p4vg7jg8hj1wqfv7lsm6ar2isxjw2vw85s49vsl7g7nvzy";
|
2011-08-15 20:05:39 +02:00
|
|
|
};
|
|
|
|
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [ qt4 eigen zlib openbabel libGLU_combined libX11 ];
|
2011-08-15 20:05:39 +02:00
|
|
|
|
2013-12-18 13:53:36 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig doxygen ];
|
2011-08-15 20:05:39 +02:00
|
|
|
|
2018-02-24 14:12:44 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-include ${libGLU_combined}/include/GL/glu.h";
|
2012-01-14 19:03:41 +01:00
|
|
|
|
2019-01-04 20:33:50 +01:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
url = https://data.gpo.zugaina.org/fusion809/sci-chemistry/avogadro/files/avogadro-1.1.0-xlibs.patch;
|
|
|
|
sha256 = "1p113v19z3zwr9gxj2k599f8p97a8rwm93pa4amqvd0snn31mw0k";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2011-08-15 20:05:39 +02:00
|
|
|
meta = {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "Molecule editor and visualizer";
|
2017-03-27 19:11:17 +02:00
|
|
|
maintainers = [ ];
|
2013-10-07 17:36:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.mesaPlatforms;
|
2011-08-15 20:05:39 +02:00
|
|
|
};
|
|
|
|
}
|