2021-06-08 03:23:33 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-02-24 18:06:13 +00:00
|
|
|
, fetchurl
|
|
|
|
, Carbon
|
|
|
|
, Cocoa
|
|
|
|
, ffmpeg
|
|
|
|
, glib
|
|
|
|
, libGLU
|
|
|
|
, mesa
|
|
|
|
, perl
|
2021-06-08 03:23:33 +01:00
|
|
|
, pkg-config
|
2022-02-24 18:06:13 +00:00
|
|
|
, proj
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
2021-06-08 03:23:33 +01:00
|
|
|
, wxGTK30-gtk3
|
2021-06-14 02:22:25 +01:00
|
|
|
, wxmac
|
2021-06-08 03:23:33 +01:00
|
|
|
, xlibsWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "survex";
|
2022-02-24 18:06:13 +00:00
|
|
|
version = "1.4.1";
|
2021-06-08 03:23:33 +01:00
|
|
|
|
2022-02-24 18:06:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
perl
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2021-06-14 02:22:25 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-24 18:06:13 +00:00
|
|
|
ffmpeg
|
|
|
|
glib
|
|
|
|
libGLU
|
|
|
|
mesa
|
|
|
|
proj
|
2021-06-14 02:22:25 +01:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2022-02-24 18:06:13 +00:00
|
|
|
Carbon
|
|
|
|
Cocoa
|
|
|
|
wxmac
|
2021-06-14 02:22:25 +01:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
2022-02-24 18:06:13 +00:00
|
|
|
wxGTK30-gtk3
|
|
|
|
xlibsWrapper
|
2021-06-14 02:22:25 +01:00
|
|
|
];
|
2021-06-08 03:23:33 +01:00
|
|
|
|
2022-02-24 18:06:13 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://survex.com/software/${version}/${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-69X1jGjBTQIQzkD1mTZTzE8L/GXnnf5SI52l7eIiLz4=";
|
2021-06-08 03:23:33 +01:00
|
|
|
};
|
|
|
|
|
2021-06-14 02:22:25 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2021-06-08 03:23:33 +01:00
|
|
|
'';
|
|
|
|
|
2022-02-24 18:06:13 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = (!stdenv.isDarwin); # times out
|
|
|
|
enableParallelChecking = false;
|
|
|
|
|
2021-06-08 03:23:33 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Free Software/Open Source software package for mapping caves";
|
|
|
|
longDescription = ''
|
|
|
|
Survex is a Free Software/Open Source software package for mapping caves,
|
|
|
|
licensed under the GPL. It is designed to be portable and can be run on a
|
|
|
|
variety of platforms, including Linux/Unix, macOS, and Microsoft Windows.
|
|
|
|
'';
|
|
|
|
homepage = "https://survex.com/";
|
2022-02-24 18:06:13 +00:00
|
|
|
changelog = "https://github.com/ojwb/survex/raw/v${version}/NEWS";
|
2021-06-08 03:23:33 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.matthewcroughan ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|