nixpkgs/pkgs/applications/misc/survex/default.nix
Ihar Hrachyshka dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00

80 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
ffmpeg,
glib,
libGLU,
libICE,
libX11,
libgbm,
perl,
pkg-config,
proj,
gdal,
python3,
wrapGAppsHook3,
wxGTK32,
}:
stdenv.mkDerivation rec {
pname = "survex";
version = "1.4.16";
src = fetchurl {
url = "https://survex.com/software/${version}/${pname}-${version}.tar.gz";
hash = "sha256-kiRXld0FwXU2zPgMPSR/KQSdoZFLTvd9Y/n97/YJlcA=";
};
nativeBuildInputs = [
perl
pkg-config
python3
wrapGAppsHook3
];
buildInputs =
[
ffmpeg
glib
proj
gdal
wxGTK32
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# TODO: libGLU doesn't build for macOS because of Mesa issues
# (#233265); is it required for anything?
libGLU
libgbm
libICE
libX11
];
strictDeps = true;
postPatch = ''
patchShebangs .
'';
configureFlags = [
"WX_CONFIG=${lib.getExe' (lib.getDev wxGTK32) "wx-config"}"
];
enableParallelBuilding = true;
doCheck = (!stdenv.hostPlatform.isDarwin); # times out
enableParallelChecking = false;
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/";
changelog = "https://github.com/ojwb/survex/raw/v${version}/NEWS";
license = licenses.gpl2Plus;
maintainers = [ maintainers.matthewcroughan ];
platforms = platforms.all;
};
}