mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
96 lines
1.5 KiB
Nix
96 lines
1.5 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
|
||
}:
|
||
|
||
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
|
||
tclPackages.tkimg
|
||
proj
|
||
wxGTK32
|
||
vtk
|
||
tk
|
||
freetype
|
||
libjpeg
|
||
gettext
|
||
libGL
|
||
libGLU
|
||
sqlite
|
||
libtiff
|
||
curl
|
||
fmt
|
||
tcl
|
||
tclPackages.tcllib
|
||
tclPackages.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 ];
|
||
};
|
||
}
|