mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
84 lines
1.8 KiB
Nix
84 lines
1.8 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, fetchpatch
|
|
, Carbon
|
|
, Cocoa
|
|
, ffmpeg
|
|
, glib
|
|
, libGLU
|
|
, libICE
|
|
, libX11
|
|
, mesa
|
|
, perl
|
|
, pkg-config
|
|
, proj
|
|
, python3
|
|
, wrapGAppsHook3
|
|
, wxGTK32
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "survex";
|
|
version = "1.4.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://survex.com/software/${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-7NtGTe9xNRPEvG9fQ2fC6htQLEMHfqGmBM2ezhi6oNM=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix cavern.tst to work with SOURCE_DATE_EPOCH set
|
|
(fetchpatch {
|
|
url = "https://github.com/ojwb/survex/commit/b1200a60be7bdea20ffebbd8bb15386041727fa6.patch";
|
|
hash = "sha256-OtFjqpU+u8XGy+PAHg2iea++b681p/Kl8YslisBs4sA=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
perl
|
|
pkg-config
|
|
python3
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
ffmpeg
|
|
glib
|
|
proj
|
|
wxGTK32
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
Carbon
|
|
Cocoa
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
# TODO: libGLU doesn't build for macOS because of Mesa issues
|
|
# (#233265); is it required for anything?
|
|
libGLU
|
|
mesa
|
|
libICE
|
|
libX11
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
doCheck = (!stdenv.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;
|
|
};
|
|
}
|