mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13: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)
74 lines
1.8 KiB
Nix
74 lines
1.8 KiB
Nix
{ lib
|
|
, stdenv
|
|
, maven
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, wrapGAppsHook3
|
|
, jre
|
|
}:
|
|
|
|
let
|
|
platformName = {
|
|
"x86_64-linux" = "linux-x86-64";
|
|
"aarch64-linux" = "linux-aarch64";
|
|
"x86_64-darwin" = "darwin-x86-64";
|
|
"aarch64-darwin" = "darwin-aarch64";
|
|
}.${stdenv.system} or null;
|
|
in
|
|
maven.buildMavenPackage rec {
|
|
pname = "jugglinglab";
|
|
version = "1.6.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jkboyce";
|
|
repo = "jugglinglab";
|
|
rev = "v${version}";
|
|
hash = "sha256-Y87uHFpVs4A/wErNO2ZF6Su0v4LEvaE9nIysrqFoY8w=";
|
|
};
|
|
|
|
patches = [
|
|
# make sure mvnHash doesn't change when maven is updated
|
|
./fix-default-maven-plugin-versions.patch
|
|
];
|
|
|
|
mvnHash = "sha256-1Uzo9nRw+YR/sd7CC9MTPe/lttkRX6BtmcsHaagP1Do=";
|
|
|
|
# fix jar timestamps for reproducibility
|
|
mvnParameters = "-Dproject.build.outputTimestamp=1980-01-01T00:00:02Z";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 bin/JugglingLab.jar -t $out/share/jugglinglab
|
|
${lib.optionalString (platformName != null) ''
|
|
install -Dm755 bin/ortools-lib/ortools-${platformName}/* -t $out/lib/ortools-lib
|
|
''}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
# gappsWrapperArgs are set in preFixup
|
|
postFixup = ''
|
|
makeWrapper ${jre}/bin/java $out/bin/jugglinglab \
|
|
"''${gappsWrapperArgs[@]}" \
|
|
--add-flags "-Xss2048k -Djava.library.path=$out/lib/ortools-lib" \
|
|
--add-flags "-jar $out/share/jugglinglab/JugglingLab.jar"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A program to visualize different juggling pattens";
|
|
homepage = "https://jugglinglab.org/";
|
|
license = licenses.gpl2Only;
|
|
mainProgram = "jugglinglab";
|
|
maintainers = with maintainers; [ wnklmnn tomasajt ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|