2021-09-28 08:13:01 +00:00
|
|
|
{ lib
|
2022-01-19 23:45:15 +00:00
|
|
|
, stdenv
|
2021-09-28 08:13:01 +00:00
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, doxygen
|
|
|
|
, graphviz
|
|
|
|
, boost
|
|
|
|
, cgal_5
|
|
|
|
, gdal
|
|
|
|
, glew
|
|
|
|
, gmp
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, mpfr
|
|
|
|
, proj
|
|
|
|
, python3
|
|
|
|
, qtxmlpatterns
|
|
|
|
, qwt
|
|
|
|
}:
|
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';
|
|
|
|
};
|
|
|
|
in mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gplates";
|
2021-09-28 08:13:01 +00:00
|
|
|
version = "2.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-09-28 08:13:01 +00:00
|
|
|
name = "gplates_${version}_src.tar.bz2";
|
|
|
|
url = "https://www.earthbyte.org/download/8421/?uid=b89bb31428";
|
|
|
|
sha256 = "0lrcmcxc924ixddii8cyglqlwwxvk7f00g4yzbss5i3fgcbh8n96";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [
|
|
|
|
./boost-placeholders.patch
|
|
|
|
];
|
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
graphviz
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost'
|
|
|
|
cgal
|
|
|
|
gdal
|
|
|
|
glew
|
|
|
|
gmp
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
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";
|
|
|
|
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;
|
2022-01-19 23:45:15 +00:00
|
|
|
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/gplates.x86_64-darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|