Files
nixpkgs/pkgs/by-name/th/therion/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

106 lines
1.6 KiB
Nix

{
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 = "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 ];
};
}