21 stdenv.mkDerivation rec {
26 url = "https://survex.com/software/${version}/${pname}-${version}.tar.gz";
27 hash = "sha256-7NtGTe9xNRPEvG9fQ2fC6htQLEMHfqGmBM2ezhi6oNM=";
31 # Fix cavern.tst to work with SOURCE_DATE_EPOCH set
33 url = "https://github.com/ojwb/survex/commit/b1200a60be7bdea20ffebbd8bb15386041727fa6.patch";
34 hash = "sha256-OtFjqpU+u8XGy+PAHg2iea++b681p/Kl8YslisBs4sA=";
50 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
53 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
54 # TODO: libGLU doesn't build for macOS because of Mesa issues
55 # (#233265); is it required for anything?
66 enableParallelBuilding = true;
67 doCheck = (!stdenv.isDarwin); # times out
68 enableParallelChecking = false;
71 description = "Free Software/Open Source software package for mapping caves";
73 Survex is a Free Software/Open Source software package for mapping caves,
74 licensed under the GPL. It is designed to be portable and can be run on a
75 variety of platforms, including Linux/Unix, macOS, and Microsoft Windows.
77 homepage = "https://survex.com/";
78 changelog = "https://github.com/ojwb/survex/raw/v${version}/NEWS";
79 license = licenses.gpl2Plus;
80 maintainers = [ maintainers.matthewcroughan ];
81 platforms = platforms.all;