Skip to content

Commit

Permalink
asli: unstable-2024-03-18 -> unstable-2024-03-18
Browse files Browse the repository at this point in the history
add dependencies for testing of antlr.

Diff: UQ-PAC/aslp@4991bcd...8828e86
  • Loading branch information
katrinafyi committed Mar 18, 2024
1 parent 08692c4 commit 0b687c6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions aslp/asli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
, buildDunePackage
# pkgs
, pcre
, antlr4
, jdk
, ott
, z3
# ocamlPackages
Expand All @@ -29,17 +31,17 @@ buildDunePackage {
src = fetchFromGitHub {
owner = "UQ-PAC";
repo = "aslp";
rev = "4991bcd611a31298a374735e327297ce923137c7";
sha256 = "sha256-Kqx8rJ7gaqIdBOgBVS3Mv+7iXEZNlicnon3s8aEwUus=";
rev = "8828e86cf7b45f63f02450699965eac1627a9973";
sha256 = "sha256-5fT+/ot9gAAizvq8R0gzDE4fLBNycfdonCrjWqxVi2c=";
};

checkInputs = [ alcotest ];
nativeCheckInputs = [ jdk ];
buildInputs = [ linenoise ];
nativeBuildInputs = [ ott menhir ];
propagatedBuildInputs = [ dune-site z3 pcre pprint zarith ocaml_z3 ocaml_pcre yojson cohttp-lwt-unix ];

preConfigure = ''
export ASLI_OTT=${ott.out + "/share/ott"}
mkdir -p $out/share/asli
cp -rv prelude.asl mra_tools tests $out/share/asli
'';
Expand All @@ -48,9 +50,10 @@ buildDunePackage {
mv -v $out/bin/asli $out/bin/aslp
'';

shellHook = ''
export ASLI_OTT=${ott.out + "/share/ott"}
'';
env = {
ASLI_OTT = ott.out + "/share/ott";
ANTLR4_JAR_LOCATION = antlr4.jarLocation;
};

doCheck = true;

Expand Down

0 comments on commit 0b687c6

Please sign in to comment.