-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
190 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ lib | ||
, fetchFromGitHub | ||
, buildDunePackage | ||
, nix-gitignore | ||
, asli | ||
, js_of_ocaml | ||
, js_of_ocaml-ppx | ||
, js_of_ocaml-compiler | ||
, nodejs-slim | ||
, python3 | ||
}: | ||
|
||
buildDunePackage rec { | ||
pname = "aslp_web"; | ||
version = "unstable-2024-06-28"; | ||
|
||
buildInputs = [ asli js_of_ocaml js_of_ocaml-ppx ]; | ||
nativeBuildInputs = [ python3 js_of_ocaml-compiler nodejs-slim ]; | ||
|
||
src = fetchFromGitHub { | ||
owner = "katrinafyi"; | ||
repo = "aslp-web"; | ||
rev = "46241099742be60f644d05be475c60166f944a55"; | ||
hash = "sha256-bOiYHpKYmPcvSlZ2kLT/X8xuNDYRJoS+PbkHUKykXKE="; | ||
}; | ||
|
||
postPatch = '' | ||
export aslp=${asli.name} | ||
export aslp_commit=${asli.src.rev or "unknown"} | ||
export aslp_web=$name | ||
export aslp_web_commit=${src.rev or "unknown"} | ||
substituteAllInPlace web/index.html | ||
''; | ||
|
||
meta = { | ||
homepage = "https://github.com/katrinafyi/aslp-web"; | ||
description = "aslp on the web"; | ||
maintainers = with lib.maintainers; [ katrinafyi ]; | ||
}; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ lib | ||
, buildDunePackage | ||
, fetchFromGitHub | ||
, pkgs | ||
, asli | ||
, bisect_ppx | ||
, ppx_inline_test | ||
}: | ||
|
||
buildDunePackage { | ||
pname = "zarith_stubs_js"; | ||
version = "0.17.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "janestreet"; | ||
repo = "zarith_stubs_js"; | ||
rev = "v0.17.0"; | ||
hash = "sha256-QNhs9rHZetwgKAOftgQQa6aU8cOux8JOe3dBRrLJVh0="; | ||
}; | ||
|
||
meta = { | ||
homepage = "https://github.com/janestreet/zarith_stubs_js"; | ||
description = "Javascripts stubs for the Zarith library"; | ||
maintainers = with lib.maintainers; [ katrinafyi ]; | ||
}; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From f8a59507a0e8fc0117ca3d11ad1ed7c870cce2e9 Mon Sep 17 00:00:00 2001 | ||
From: rina <[email protected]> | ||
Date: Mon, 1 Jul 2024 12:14:48 +1000 | ||
Subject: [PATCH] asli_lifter.ml: use FileSource type | ||
|
||
--- | ||
asli_lifter.ml | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/asli_lifter.ml b/asli_lifter.ml | ||
index 2e7680f..9315781 100644 | ||
--- a/asli_lifter.ml | ||
+++ b/asli_lifter.ml | ||
@@ -470,8 +470,8 @@ let lifter env lenv label = | ||
| _ -> i | ||
|
||
let load prelude specs = | ||
- let prelude = LoadASL.read_file prelude true false in | ||
- let mra = List.map (fun tool -> LoadASL.read_file tool false false) specs in | ||
+ let prelude = LoadASL.read_file (LoadASL.FileSource prelude) true false in | ||
+ let mra = List.map (fun tool -> LoadASL.read_file (LoadASL.FileSource tool) false false) specs in | ||
let env = Eval.build_evaluation_environment (List.concat (prelude::mra)) in | ||
let denv = Dis.build_env env in | ||
KB.promise Theory.Semantics.slot (lifter env denv) | ||
-- | ||
2.45.2 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From 7bf9b895dfeaeb33b1f18523358f485039850b6a Mon Sep 17 00:00:00 2001 | ||
From: rina <[email protected]> | ||
Date: Mon, 1 Jul 2024 14:11:10 +1000 | ||
Subject: [PATCH] bap_build: filter empty library files | ||
|
||
--- | ||
lib/bap_build/bap_build.ml | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/lib/bap_build/bap_build.ml b/lib/bap_build/bap_build.ml | ||
index a6ece6c1..e1b127a3 100644 | ||
--- a/lib/bap_build/bap_build.ml | ||
+++ b/lib/bap_build/bap_build.ml | ||
@@ -80,6 +80,7 @@ module Plugin_rules = struct | ||
then raise Not_found; | ||
String.split_on_char ' ' arch |> | ||
List.map ~f:(Fl.resolve_path ~base) | ||
+ |> List.filter ~f:(fun x -> x <> "") | ||
with Not_found -> [] | ||
|
||
let externals pkgs = | ||
-- | ||
2.45.2 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,5 @@ in stdenv.mkDerivation { | |
command = "bap --help"; | ||
version = "asli-specs"; | ||
}; | ||
|
||
meta = { | ||
broken = true; | ||
}; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ lib | ||
, fetchFromGitHub | ||
, buildDunePackage | ||
, ocaml_oasis | ||
, ocamlbuild | ||
, ppx_bap | ||
, ppx_sexp_value | ||
, core_kernel | ||
, findlib | ||
}: | ||
|
||
buildDunePackage { | ||
pname = "bap-build"; | ||
version = "unstable-2024-04-25"; | ||
|
||
minimalOCamlVersion = "4.09"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "BinaryAnalysisPlatform"; | ||
repo = "bap"; | ||
rev = "95e81738c440fbc928a627e4b5ab3cccfded66e2"; | ||
hash = "sha256-gogcwqK7EK4Fs4HiCXKxWeFpJ1vJlJupMtJu+8M9kjs="; | ||
}; | ||
|
||
dontConfigure = true; | ||
|
||
patches = [ ./0001-bap_build-filter-empty-library-files.patch ]; | ||
|
||
postPatch = '' | ||
# bap-build does not actually make use of ppx_bap | ||
substituteInPlace tools/dune --replace-warn '(preprocess (pps ppx_bap))' "" | ||
''; | ||
|
||
buildInputs = [ ocamlbuild findlib core_kernel ]; | ||
nativeBuildInputs = [ ocaml_oasis ]; | ||
propagatedBuildInputs = []; | ||
|
||
meta = { | ||
homepage = "https://github.com/BinaryAnalysisPlatform/bap/blob/master/tools/bapbuild.ml"; | ||
description = "bapbuild executable for plugin building"; | ||
maintainers = with lib.maintainers; [ katrinafyi ]; | ||
}; | ||
} |
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
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
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