3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/jugglinglab/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, jre, makeWrapper, ant, jdk }:
2020-05-15 09:42:45 +01:00
stdenv.mkDerivation rec {
2022-07-30 06:38:23 +01:00
version = "1.6.3";
pname = "jugglinglab";
src = fetchFromGitHub {
owner = "jkboyce";
repo = "jugglinglab";
2022-07-30 06:38:23 +01:00
rev = "v${version}";
sha256 = "sha256-Gq8V7gLl9IakQi7xaK8TCI/B2+6LlLjoLdcv9zlalIE=";
2020-05-15 09:42:45 +01:00
};
buildInputs = [ jre ];
nativeBuildInputs = [ ant jdk makeWrapper ];
buildPhase = "ant";
installPhase = ''
mkdir -p "$out/bin"
mkdir -p "$out/lib"
2022-07-30 06:38:23 +01:00
cp bin/*.jar $out/lib/
# copied from the upstream shell wrapper
classpath=$out/lib/JugglingLab.jar:$out/lib/commons-math3-3.6.1.jar:$out/lib/protobuf.jar:$out/lib/com.google.ortools.jar
2020-05-15 09:42:45 +01:00
makeWrapper ${jre}/bin/java $out/bin/jugglinglab \
2022-07-30 06:38:23 +01:00
--add-flags "-cp $classpath" \
--add-flags "-Xss2048k -Djava.library.path=ortools-lib" \
--add-flags jugglinglab.JugglingLab
2020-05-15 09:42:45 +01:00
'';
meta = with lib; {
2020-05-15 09:42:45 +01:00
description = "A program to visualize different juggling pattens";
2022-07-30 06:38:23 +01:00
homepage = "https://jugglinglab.org/";
2020-05-15 09:42:45 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ wnklmnn ];
platforms = platforms.all;
2020-05-15 09:42:45 +01:00
};
}