60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
75 lines
1.2 KiB
Nix
75 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, doxygen
|
|
, graphviz
|
|
, boost
|
|
, cgal_5
|
|
, gdal
|
|
, glew
|
|
, gmp
|
|
, libGL
|
|
, libGLU
|
|
, libSM
|
|
, mpfr
|
|
, proj
|
|
, python3
|
|
, qtxmlpatterns
|
|
, qwt
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
let
|
|
python = python3.withPackages (ps: with ps; [
|
|
numpy
|
|
]);
|
|
boost' = boost.override {
|
|
enablePython = true;
|
|
inherit python;
|
|
};
|
|
cgal = cgal_5.override {
|
|
boost = boost';
|
|
};
|
|
in stdenv.mkDerivation (finalAttrs: {
|
|
pname = "gplates";
|
|
version = "2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GPlates";
|
|
repo = "GPlates";
|
|
rev = "GPlates-${finalAttrs.version}";
|
|
hash = "sha256-BRvrqczGguE2z44ZboxeJxgWEA+t02XkzvU+yF4ki6s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
doxygen
|
|
graphviz
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
boost'
|
|
cgal
|
|
gdal
|
|
glew
|
|
gmp
|
|
libGL
|
|
libGLU
|
|
libSM
|
|
mpfr
|
|
proj
|
|
python
|
|
qtxmlpatterns
|
|
qwt
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Desktop software for the interactive visualisation of plate-tectonics";
|
|
homepage = "https://www.gplates.org";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.all;
|
|
broken = stdenv.isDarwin; # FIX: this check: https://github.com/GPlates/GPlates/blob/gplates/cmake/modules/Config_h.cmake#L72
|
|
};
|
|
})
|