-
-
Save samueldr/885a5bfca2be2f1d880d18e9a7ea7c1b 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
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "JFLAP"; | |
src = fetchurl { | |
url = http://www.jflap.org/jflaptmp/july27-18/JFLAP7.1.jar; | |
sha256 = "01llr436w5h5c6wldsrm1xbwn11sbcbfzvpbx1iq3canvifhjb52"; | |
}; | |
unpackPhase = ":"; | |
buildInputs = [ jre8 makeWrapper wrapGAppsHook ]; | |
installPhase = | |
'' | |
mkdir -p $out/bin | |
mkdir -p $out/share/java | |
cp $src $out/share/java/jflap.jar | |
makeWrapper ${jre8}/bin/java $out/bin/jflap \ | |
--add-flags "-jar $out/share/java/jflap.jar" | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment