Commit b81e40b 1 parent 8ca8b6b commit b81e40b Copy full SHA for b81e40b
File tree 3 files changed +44
-3
lines changed
3 files changed +44
-3
lines changed Original file line number Diff line number Diff line change
1
+ { lib
2
+ , fetchFromGitHub
3
+ , buildDunePackage
4
+ # pkgs
5
+ # ocamlPackages
6
+ , aslp_web
7
+ , zarith_stubs_js
8
+ , js_of_ocaml
9
+ , js_of_ocaml-ppx
10
+ # for testing
11
+ , testers
12
+ , aslp_offline
13
+ } :
14
+
15
+ buildDunePackage {
16
+ pname = "aslp_offline_js" ;
17
+ version = aslp_web . version ;
18
+
19
+ minimalOCamlVersion = "5.0" ;
20
+
21
+ src = aslp_web . src ;
22
+
23
+ checkInputs = [ ] ;
24
+ nativeCheckInputs = [ ] ;
25
+ buildInputs = [ js_of_ocaml-ppx ] ;
26
+ nativeBuildInputs = [ js_of_ocaml ] ;
27
+ propagatedBuildInputs = [ aslp_offline js_of_ocaml zarith_stubs_js ] ;
28
+
29
+ doCheck = true ;
30
+
31
+ outputs = [ "out" "dev" ] ;
32
+
33
+ meta = {
34
+ homepage = "https://github.com/katrinafyi/aslp-web" ;
35
+ description = "AArch64 lifter generated by ASLp by offline partial evaluation (offline lifter component)" ;
36
+ maintainers = with lib . maintainers ; [ katrinafyi ] ;
37
+ } ;
38
+ }
Original file line number Diff line number Diff line change 3
3
, buildDunePackage
4
4
, nix-gitignore
5
5
, asli
6
+ , aslp_offline_js
6
7
, js_of_ocaml
7
8
, js_of_ocaml-ppx
8
9
, js_of_ocaml-compiler
9
- , zarith_stubs_js
10
+ , zarith_stubs_js
10
11
, nodejs-slim
11
12
, python3
12
13
} :
@@ -15,7 +16,7 @@ buildDunePackage rec {
15
16
pname = "aslp_web" ;
16
17
version = "0-unstable-2025-02-05" ;
17
18
18
- buildInputs = [ asli js_of_ocaml js_of_ocaml-ppx zarith_stubs_js ] ;
19
+ propagatedBuildInputs = [ asli js_of_ocaml js_of_ocaml-ppx zarith_stubs_js aslp_offline_js ] ;
19
20
nativeBuildInputs = [ python3 js_of_ocaml-compiler nodejs-slim ] ;
20
21
21
22
src = fetchFromGitHub {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ final: prev:
8
8
inherit ( final . ocamlPackages_pac_5 ) aslp-server ;
9
9
inherit ( final . ocamlPackages_pac_5 ) aslp_client_server_ocaml ;
10
10
inherit ( final . ocamlPackages_pac_5 ) aslp_offline ;
11
+ inherit ( final . ocamlPackages_pac_5 ) aslp_offline_js ;
11
12
12
13
overlay_ocamlPackages = ofinal : oprev : {
13
14
asli = ofinal . callPackage ./asli.nix { inherit ( final ) z3 ; ocaml_z3 = ofinal . z3 ; } ;
@@ -17,7 +18,8 @@ final: prev:
17
18
aslp_server_http = ofinal . aslp-server ;
18
19
19
20
20
- aslp_offline = ofinal . callPackage ./aslp_offline.nix { } ;
21
+ aslp_offline = ofinal . callPackage ./aslp_offline.nix { } ;
22
+ aslp_offline_js = ofinal . callPackage ./aslp_offline_js.nix { zarith_stubs_js = ofinal . zarith_stubs_js_0_17 ; } ;
21
23
22
24
zarith_stubs_js_0_17 = ofinal . callPackage ./zarith_stubs_js.nix { } ;
23
25
aslp_web = ofinal . callPackage ./aslp_web.nix { zarith_stubs_js = ofinal . zarith_stubs_js_0_17 ; } ;
You can’t perform that action at this time.
0 commit comments