2023-04-30 01:12:37 +02:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, cmake
|
|
|
|
|
, pkg-config
|
|
|
|
|
, perl
|
|
|
|
|
, tcl
|
|
|
|
|
, tcllib
|
|
|
|
|
, tk
|
|
|
|
|
, expat
|
|
|
|
|
, bwidget
|
|
|
|
|
, python3
|
2023-11-04 21:02:30 +01:00
|
|
|
|
, texliveTeTeX
|
2023-04-30 01:12:37 +02:00
|
|
|
|
, survex
|
|
|
|
|
, makeWrapper
|
|
|
|
|
, fmt
|
|
|
|
|
, proj
|
|
|
|
|
, wxGTK32
|
|
|
|
|
, vtk
|
|
|
|
|
, freetype
|
|
|
|
|
, libjpeg
|
|
|
|
|
, gettext
|
|
|
|
|
, libGL
|
|
|
|
|
, libGLU
|
|
|
|
|
, sqlite
|
|
|
|
|
, libtiff
|
|
|
|
|
, curl
|
|
|
|
|
, tkimg
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "therion";
|
2023-06-24 20:58:23 +02:00
|
|
|
|
version = "6.1.8";
|
2023-04-30 01:12:37 +02:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "therion";
|
|
|
|
|
repo = "therion";
|
|
|
|
|
rev = "v${version}";
|
2023-06-24 20:58:23 +02:00
|
|
|
|
hash = "sha256-bmp0IZ4uAqDpe2e8UeIDUdFaaocx4OBIYuhnaHirqGc=";
|
2023-04-30 01:12:37 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
cmake
|
|
|
|
|
pkg-config
|
|
|
|
|
perl
|
|
|
|
|
python3
|
2023-11-04 21:02:30 +01:00
|
|
|
|
texliveTeTeX
|
2023-04-30 01:12:37 +02:00
|
|
|
|
makeWrapper
|
|
|
|
|
tcl.tclPackageHook
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
|
export OUTDIR=$out
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
|
"-DBUILD_THBOOK=OFF"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
expat
|
|
|
|
|
tkimg
|
|
|
|
|
proj
|
|
|
|
|
wxGTK32
|
|
|
|
|
vtk
|
|
|
|
|
tk
|
|
|
|
|
freetype
|
|
|
|
|
libjpeg
|
|
|
|
|
gettext
|
|
|
|
|
libGL
|
|
|
|
|
libGLU
|
|
|
|
|
sqlite
|
|
|
|
|
libtiff
|
|
|
|
|
curl
|
|
|
|
|
fmt
|
|
|
|
|
tcl
|
|
|
|
|
tcllib
|
|
|
|
|
bwidget
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
|
runHook preFixup
|
|
|
|
|
wrapProgram $out/bin/therion \
|
2023-11-04 21:02:30 +01:00
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ survex texliveTeTeX ]}
|
2023-04-30 01:12:37 +02:00
|
|
|
|
wrapProgram $out/bin/xtherion \
|
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ tk ]}
|
|
|
|
|
runHook postFixup
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Therion – cave surveying software";
|
|
|
|
|
homepage = "https://therion.speleo.sk/";
|
|
|
|
|
changelog = "https://github.com/therion/therion/blob/${src.rev}/CHANGES";
|
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
|
|
|
};
|
|
|
|
|
}
|