2021-09-28 08:13:01 +00:00
|
|
|
{ lib
|
2022-01-19 23:45:15 +00:00
|
|
|
, stdenv
|
2024-02-07 01:22:34 +00:00
|
|
|
, fetchFromGitHub
|
2024-09-19 14:19:46 +00:00
|
|
|
, fetchpatch
|
2021-09-28 08:13:01 +00:00
|
|
|
, cmake
|
|
|
|
, doxygen
|
|
|
|
, graphviz
|
|
|
|
, boost
|
|
|
|
, cgal_5
|
|
|
|
, gdal
|
|
|
|
, glew
|
|
|
|
, gmp
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
2024-02-07 01:22:34 +00:00
|
|
|
, libSM
|
2021-09-28 08:13:01 +00:00
|
|
|
, mpfr
|
|
|
|
, proj
|
|
|
|
, python3
|
|
|
|
, qtxmlpatterns
|
|
|
|
, qwt
|
2024-02-07 01:22:34 +00:00
|
|
|
, wrapQtAppsHook
|
2021-09-28 08:13:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
let
|
|
|
|
python = python3.withPackages (ps: with ps; [
|
|
|
|
numpy
|
|
|
|
]);
|
|
|
|
boost' = boost.override {
|
|
|
|
enablePython = true;
|
|
|
|
inherit python;
|
|
|
|
};
|
|
|
|
cgal = cgal_5.override {
|
|
|
|
boost = boost';
|
|
|
|
};
|
2024-02-07 01:22:34 +00:00
|
|
|
in stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gplates";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GPlates";
|
|
|
|
repo = "GPlates";
|
|
|
|
rev = "GPlates-${finalAttrs.version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-3fEwm5EKK9RcRbnyUejgwfjdsXaujjZjoMbq/BbVMeM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "qwt-6.3-compile-error-fix.patch";
|
|
|
|
url = "https://github.com/GPlates/GPlates/commit/c4680ebe54f4535909085feacecd66410a91ff98.patch";
|
|
|
|
hash = "sha256-mw5+GLayMrmcSDd1ai+0JTuY3iedHT9u2kx5Dd2wMjg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
graphviz
|
2024-02-07 01:22:34 +00:00
|
|
|
wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost'
|
|
|
|
cgal
|
|
|
|
gdal
|
|
|
|
glew
|
|
|
|
gmp
|
|
|
|
libGL
|
|
|
|
libGLU
|
2024-02-07 01:22:34 +00:00
|
|
|
libSM
|
2021-09-28 08:13:01 +00:00
|
|
|
mpfr
|
|
|
|
proj
|
|
|
|
python
|
|
|
|
qtxmlpatterns
|
|
|
|
qwt
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Desktop software for the interactive visualisation of plate-tectonics";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gplates";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gplates.org";
|
2021-09-28 08:13:01 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin; # FIX: this check: https://github.com/GPlates/GPlates/blob/gplates/cmake/modules/Config_h.cmake#L72
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-02-07 01:22:34 +00:00
|
|
|
})
|