nixpkgs/pkgs/applications/misc/therion/default.nix

98 lines
1.5 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, perl
, tcl
, tcllib
, tk
, expat
, bwidget
, python3
, texliveTeTeX
, survex
, makeWrapper
, fmt
, proj
, wxGTK32
, vtk
, freetype
, libjpeg
, gettext
, libGL
, libGLU
, sqlite
, libtiff
, curl
, tkimg
}:
stdenv.mkDerivation rec {
pname = "therion";
version = "6.1.8";
src = fetchFromGitHub {
owner = "therion";
repo = "therion";
rev = "v${version}";
hash = "sha256-bmp0IZ4uAqDpe2e8UeIDUdFaaocx4OBIYuhnaHirqGc=";
};
nativeBuildInputs = [
cmake
pkg-config
perl
python3
texliveTeTeX
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 \
--prefix PATH : ${lib.makeBinPath [ survex texliveTeTeX ]}
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 ];
};
}