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)
56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchzip
|
|
, glib
|
|
, jre
|
|
, makeWrapper
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "VASSAL";
|
|
version = "3.7.10";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/vassalengine/vassal/releases/download/${version}/${pname}-${version}-linux.tar.bz2";
|
|
sha256 = "sha256-cQ2tLd3KU46qe/PrMPh3I3+KQxNGBB4WbRfPHpT9IVA=";
|
|
};
|
|
|
|
buildInputs = [
|
|
glib
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin $out/share/vassal $out/doc
|
|
|
|
cp CHANGES LICENSE README.md $out
|
|
cp -R lib/* $out/share/vassal
|
|
cp -R doc/* $out/doc
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/vassal \
|
|
--add-flags "-Duser.dir=$out -cp $out/share/vassal/Vengine.jar \
|
|
VASSAL.launch.ModuleManager"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
# Don't move doc to share/, VASSAL expects it to be in the root
|
|
forceShare = [ "man" "info" ];
|
|
|
|
meta = with lib; {
|
|
description = "A free, open-source boardgame engine";
|
|
homepage = "https://vassalengine.org/";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [ tvestelind ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "vassal";
|
|
};
|
|
}
|