1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
perl,
tcl,
tclPackages,
tk,
expat,
python3,
texliveTeTeX,
survex,
makeWrapper,
fmt,
proj,
wxGTK32,
vtk,
freetype,
libjpeg,
gettext,
libGL,
libGLU,
sqlite,
libtiff,
curl,
catch2,
}:
stdenv.mkDerivation rec {
pname = "therion";
version = "6.3.4";
src = fetchFromGitHub {
owner = "therion";
repo = "therion";
tag = "v${version}";
hash = "sha256-kus5MoiUrLadpzq0wPB+J85F0RVva7NAYM6E6HX4eJ8=";
};
nativeBuildInputs = [
cmake
pkg-config
perl
python3
texliveTeTeX
makeWrapper
tcl.tclPackageHook
];
preConfigure = ''
export OUTDIR=$out
'';
cmakeFlags = [
"-DBUILD_THBOOK=OFF"
];
buildInputs = [
expat
tclPackages.tkimg
proj
wxGTK32
vtk
tk
freetype
libjpeg
gettext
libGL
libGLU
sqlite
libtiff
curl
fmt
tcl
tclPackages.tcllib
tclPackages.bwidget
catch2
];
fixupPhase = ''
runHook preFixup
wrapProgram $out/bin/therion \
--prefix PATH : ${
lib.makeBinPath [
survex
texliveTeTeX
]
}
wrapProgram $out/bin/xtherion \
--prefix PATH : ${lib.makeBinPath [ tk ]}
runHook postFixup
'';
meta = {
description = "Therion – cave surveying software";
homepage = "https://therion.speleo.sk/";
changelog = "https://github.com/therion/therion/blob/${src.rev}/CHANGES";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ matthewcroughan ];
};
}
|