3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/misc/gplates/default.nix

72 lines
1.2 KiB
Nix
Raw Normal View History

2021-09-19 18:32:27 +01:00
{ lib
2022-01-14 08:28:48 +00:00
, stdenv
2021-09-19 18:32:27 +01:00
, mkDerivation
, fetchurl
, cmake
, doxygen
, graphviz
, boost
, cgal_5
, gdal
, glew
, gmp
, libGL
, libGLU
, mpfr
, proj
, python3
, qtxmlpatterns
, qwt
}:
2016-12-17 00:17:29 +00:00
2021-09-19 18:32:27 +01: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 {
pname = "gplates";
2021-09-19 18:32:27 +01:00
version = "2.3.0";
2016-12-17 00:17:29 +00:00
src = fetchurl {
2021-09-19 18:32:27 +01:00
name = "gplates_${version}_src.tar.bz2";
url = "https://www.earthbyte.org/download/8421/?uid=b89bb31428";
sha256 = "0lrcmcxc924ixddii8cyglqlwwxvk7f00g4yzbss5i3fgcbh8n96";
2016-12-17 00:17:29 +00:00
};
2021-09-19 18:32:27 +01:00
nativeBuildInputs = [
cmake
doxygen
graphviz
2017-03-02 13:13:02 +00:00
];
2016-12-17 00:17:29 +00:00
2021-09-19 18:32:27 +01:00
buildInputs = [
boost'
cgal
gdal
glew
gmp
libGL
libGLU
mpfr
proj
python
qtxmlpatterns
qwt
];
2020-07-28 01:24:32 +01:00
meta = with lib; {
2016-12-17 00:17:29 +00:00
description = "Desktop software for the interactive visualisation of plate-tectonics";
homepage = "https://www.gplates.org";
2021-09-19 18:32:27 +01:00
license = licenses.gpl2Only;
2016-12-17 00:17:29 +00:00
platforms = platforms.all;
2022-01-14 08:28:48 +00:00
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/gplates.x86_64-darwin
2016-12-17 00:17:29 +00:00
};
}