Skip to content

Instantly share code, notes, and snippets.

@wnklmnn
Created May 12, 2020 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wnklmnn/8cb8e9bfba36ac103303c7b6aa6d2710 to your computer and use it in GitHub Desktop.
Save wnklmnn/8cb8e9bfba36ac103303c7b6aa6d2710 to your computer and use it in GitHub Desktop.
{pkgs ? import <nixpkgs>{} }:
pkgs.stdenv.mkDerivation {
name = "jugglinglab";
src = pkgs.fetchgit {
url = "https://github.com/jkboyce/jugglinglab";
rev = "v1.2";
sha256 = "1p62kb9hfch7pi4way18c5mgky4xbxcrfgrw0hd25sd6cpr88z92";
};
buildInputs = with pkgs; [jre makeWrapper ];
nativeBuildInputs = with pkgs; [ ant jdk ];
buildPhase = "ant";
installPhase = ''
pwd
mkdir -p "$out/bin"
mkdir -p "$out/lib"
cp bin/JugglingLab.jar $out/lib/
makeWrapper ${pkgs.jre}/bin/java $out/bin/jugglinglab \
--add-flags "-jar $out/lib/JugglingLab.jar"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment