-
-
Save wnklmnn/8cb8e9bfba36ac103303c7b6aa6d2710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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