@ -1,68 +1,61 @@
{ lib
, stdenv
, fetchgit
, autoreconfHook
, fetchurl
, Carbon
, Cocoa
, ffmpeg
, glib
, libGLU
, mesa
, perl
, pkg-config
, proj
, python3
, wrapGAppsHook
, wxGTK30-gtk3
, wxmac
, ffmpeg
, proj_7
, perl532
, unscii
, python2
, libGL
, libGLU
, xlibsWrapper
, docbook2x
, docbook5
, Carbon
, Cocoa
} :
let
perlenv = perl532 . withPackages ( perlPackages : with perlPackages ; [ LocalePO ] ) ;
in
stdenv . mkDerivation rec {
pname = " s u r v e x " ;
version = " 1 . 2 . 4 4 " ;
version = " 1 . 4 . 1 " ;
nativeBuildInputs = [ docbook5 docbook2x autoreconfHook pkg-config perlenv python2 ] ;
nativeBuildInputs = [
perl
pkg-config
python3
wrapGAppsHook
] ;
buildInputs = [
libGL libGLU ffmpeg proj_7
ffmpeg
glib
libGLU
mesa
proj
] ++ lib . optionals stdenv . hostPlatform . isDarwin [
wxmac Carbon Cocoa
Carbon
Cocoa
wxmac
] ++ lib . optionals stdenv . hostPlatform . isLinux [
wxGTK30-gtk3 xlibsWrapper
wxGTK30-gtk3
xlibsWrapper
] ;
src = fetchgit {
url = " g i t : / / g i t . s u r v e x . c o m / s u r v e x " ;
rev = version ;
sha256 = " 1 1 g a q m a b r f 3 a v 6 6 5 j y 3 m r 0 m 8 h g 7 6 f m v n d 0 g 3 r g h z m y h 8 d 8 v 6 x k 3 4 " ;
src = fetchurl {
url = " h t t p s : / / s u r v e x . c o m / s o f t w a r e / ${ version } / ${ pname } - ${ version } . t a r . g z " ;
hash = " s h a 2 5 6 - 6 9 X 1 j G j B T Q I Q z k D 1 m T Z T z E 8 L / G X n n f 5 S I 5 2 l 7 e I i L z 4 = " ;
} ;
enableParallelBuilding = true ;
# Docs rely on sgmltools-lite, a package that would be quite complex to
# provide as it is quite old. So this preConfigure hook effectively disables
# the doc generation. An example of packaging sgmltools-lite from Gentoo can
# be found here:
# https://gitweb.gentoo.org/repo/gentoo.git/tree/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r15.ebuild?id=0b8b716331049599ea3299981e3a9ea6e258c5e0
postPatch = ''
patchShebangs .
echo " " > doc/Makefile.am
# substituteInPlace doc/Makefile --replace "docbook2man" "docbook2man --sgml" # Will be needed once sgmltools-lite is packaged.
for perltool in ' ./extract-msgs.pl ' ' ./gettexttomsg.pl ' ' $ ( srcdir ) /gdtconvert ' ' $ ( srcdir ) /gen_img2aven ' ; do
substituteInPlace src/Makefile.am \
- - replace " $ p e r l t o o l " " ${ perlenv } / b i n / p e r l $ p e r l t o o l "
done
substituteInPlace lib/Makefile.am \
- - replace ' $ ( srcdir ) /make-pixel-font ' ' $ { perlenv } /bin/perl $ ( srcdir ) /make-pixel-font '
substituteInPlace lib/make-pixel-font - - replace /usr/share/unifont/unifont.hex $ { unscii . extra } /share/fonts/misc/unifont.hex
'' ;
enableParallelBuilding = true ;
doCheck = ( ! stdenv . isDarwin ) ; # times out
enableParallelChecking = false ;
meta = with lib ; {
description = " F r e e S o f t w a r e / O p e n S o u r c e s o f t w a r e p a c k a g e f o r m a p p i n g c a v e s " ;
longDescription = ''
@ -71,7 +64,7 @@ stdenv.mkDerivation rec {
variety of platforms , including Linux/Unix , macOS , and Microsoft Windows .
'' ;
homepage = " h t t p s : / / s u r v e x . c o m / " ;
changelog = " h t t p s : / / g i t h u b . c o m / o j w b / s u r v e x / b l o b / ${ version } / N E W S " ;
changelog = " h t t p s : / / g i t h u b . c o m / o j w b / s u r v e x / r a w / v ${ version } / N E W S " ;
license = licenses . gpl2Plus ;
maintainers = [ maintainers . matthewcroughan ] ;
platforms = platforms . all ;