Skip to content

Commit

Permalink
Merge pull request #6 from katrinafyi/aslp-web-5
Browse files Browse the repository at this point in the history
aslp_web: update and build with ocaml5
  • Loading branch information
katrinafyi authored Jul 3, 2024
2 parents b79e7a8 + 54fb7d5 commit 0828d84
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 1 addition & 2 deletions aslp/asli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
, mlbdd
, yojson
, ppx_blob
, zarith_stubs_js
, asli
, testers
}:
Expand All @@ -42,7 +41,7 @@ buildDunePackage {
nativeCheckInputs = [ jdk ];
buildInputs = [ mlbdd linenoise ppx_blob ];
nativeBuildInputs = [ ott menhir ];
propagatedBuildInputs = [ dune-site z3 pcre pprint zarith ocaml_z3 ocaml_pcre yojson cohttp-lwt-unix zarith_stubs_js ];
propagatedBuildInputs = [ dune-site z3 pcre pprint zarith ocaml_z3 ocaml_pcre yojson cohttp-lwt-unix ];

preConfigure = ''
mkdir -p $out/share/asli
Expand Down
7 changes: 4 additions & 3 deletions aslp/aslp_web.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, js_of_ocaml
, js_of_ocaml-ppx
, js_of_ocaml-compiler
, zarith_stubs_js
, nodejs-slim
, python3
}:
Expand All @@ -14,14 +15,14 @@ buildDunePackage rec {
pname = "aslp_web";
version = "unstable-2024-06-28";

buildInputs = [ asli js_of_ocaml js_of_ocaml-ppx ];
buildInputs = [ asli js_of_ocaml js_of_ocaml-ppx zarith_stubs_js ];
nativeBuildInputs = [ python3 js_of_ocaml-compiler nodejs-slim ];

src = fetchFromGitHub {
owner = "katrinafyi";
repo = "aslp-web";
rev = "46241099742be60f644d05be475c60166f944a55";
hash = "sha256-bOiYHpKYmPcvSlZ2kLT/X8xuNDYRJoS+PbkHUKykXKE=";
rev = "7361e110b1717a017fdc68aa3b568f1a27e291bb";
hash = "sha256-+WrDXoo911+MTKkeBg+fDezsyxspd4pKf7ZLsTW6pEc=";
};

postPatch = ''
Expand Down
7 changes: 4 additions & 3 deletions aslp/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ final: prev:

aslp-cpp = prev.callPackage ./aslp-cpp.nix { };

inherit (final.ocamlPackages_pac) aslp asli aslp_web;
inherit (final.ocamlPackages_pac) aslp asli;
inherit (final.ocamlPackages_pac_5) aslp_web;

overlay_ocamlPackages = ofinal: oprev: {

asli = ofinal.callPackage ./asli.nix { inherit (final) z3; ocaml_z3 = ofinal.z3; zarith_stubs_js = ofinal.zarith_stubs_js_0_17; };
asli = ofinal.callPackage ./asli.nix { inherit (final) z3; ocaml_z3 = ofinal.z3; };
aslp = ofinal.asli;
# .overrideAttrs { src = prev.lib.cleanSource ~/progs/aslp; }

zarith_stubs_js_0_17 = ofinal.callPackage ./zarith_stubs_js.nix { };
aslp_web = ofinal.callPackage ./aslp_web.nix { };
aslp_web = ofinal.callPackage ./aslp_web.nix { zarith_stubs_js = ofinal.zarith_stubs_js_0_17; };

mlbdd = ofinal.callPackage ./mlbdd.nix { };

Expand Down
4 changes: 2 additions & 2 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ let

update = prev.callPackage ./update.nix { };

# ocamlPackages_pac = final.ocamlPackages.overrideScope final.overlay_ocamlPackages
# // { _overlay = final.overlay_ocamlPackages; };
ocamlPackages_pac = final.ocaml-ng.ocamlPackages_4_14.overrideScope final.overlay_ocamlPackages
// { _overlay = final.overlay_ocamlPackages; };
ocamlPackages_pac_5 = final.ocamlPackages.overrideScope final.overlay_ocamlPackages
// { _overlay = final.overlay_ocamlPackages; };

# llvm-translator packages
overlay_ocamlPackages = ofinal: oprev: {
Expand Down

0 comments on commit 0828d84

Please sign in to comment.