nixpkgs/pkgs/applications/science/chemistry/avogadro/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
929 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, qt4, zlib, eigen, openbabel, pkg-config, libGLU, libGL, libX11, doxygen }:
stdenv.mkDerivation rec {
pname = "avogadro";
version = "1.1.1";
src = fetchurl {
url = "mirror://sourceforge/avogadro/avogadro-${version}.tar.bz2";
2013-12-18 13:07:14 +01:00
sha256 = "050ag9p4vg7jg8hj1wqfv7lsm6ar2isxjw2vw85s49vsl7g7nvzy";
};
2019-11-10 17:44:34 +01:00
buildInputs = [ qt4 eigen zlib openbabel libGL libGLU libX11 ];
nativeBuildInputs = [ cmake pkg-config doxygen ];
2019-11-10 17:44:34 +01:00
NIX_CFLAGS_COMPILE = "-include ${libGLU.dev}/include/GL/glu.h";
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";
2019-01-04 20:33:50 +01:00
sha256 = "1p113v19z3zwr9gxj2k599f8p97a8rwm93pa4amqvd0snn31mw0k";
})
];
2021-01-18 00:21:19 +01:00
meta = with lib; {
description = "Molecule editor and visualizer";
2021-01-18 00:21:19 +01:00
maintainers = with maintainers; [ danielbarter ];
platforms = platforms.mesaPlatforms;
};
}