jflap: init at 7.1

This commit is contained in:
grnnja 2022-02-28 17:07:39 -08:00
parent 369bc63ae7
commit b6c7526d3a
No known key found for this signature in database
GPG key ID: 184B3F53D1D29A0D
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "jflap";
version = "7.1";
src = fetchurl {
url = "https://www.jflap.org/jflaptmp/july27-18/JFLAP7.1.jar";
sha256 = "oiwJXdxWsYFj6Ovu7xZbOgTLVw8160a5YQUWbgbJlAY=";
};
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/java
cp -s $src $out/share/java/jflap.jar
makeWrapper ${jre}/bin/java $out/bin/jflap --add-flags "-jar $out/share/java/jflap.jar"
runHook postInstall
'';
meta = with lib; {
description = "GUI tool for experimenting with formal languages topics";
homepage = "https://www.jflap.org/";
license = licenses.unfree;
maintainers = [ maintainers.grnnja ];
platforms = platforms.all;
};
}

View file

@ -32324,6 +32324,8 @@ with pkgs;
groove = callPackage ../applications/science/programming/groove { };
jflap = callPackage ../applications/science/programming/jflap { };
plm = callPackage ../applications/science/programming/plm { };
### SCIENCE/LOGIC