Merge master into staging-next
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
{ lib, menhir, easy-format, fetchFromGitHub, buildDunePackage, which, biniou, yojson }:
|
||||
{ lib, menhir, easy-format, fetchurl, buildDunePackage, which, re }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "atd";
|
||||
version = "2.0.0";
|
||||
version = "2.2.1";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mjambon";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0alzmk97rxg7s6irs9lvf89dy9n3r769my5n4j9p9qyigcdgjaia";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz";
|
||||
sha256 = "17jm79np69ixp53a4njxnlb1pg8sd1g47nm3nyki9clkc8d4qsyv";
|
||||
};
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
buildInputs = [ which menhir ];
|
||||
propagatedBuildInputs = [ easy-format biniou yojson ];
|
||||
propagatedBuildInputs = [ easy-format re ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mjambon/atd";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
let runtime =
|
||||
buildDunePackage {
|
||||
pname = "atdgen-runtime";
|
||||
inherit (atd) version src;
|
||||
inherit (atd) version useDune2 src;
|
||||
|
||||
propagatedBuildInputs = [ biniou yojson ];
|
||||
|
||||
@@ -13,7 +13,7 @@ let runtime =
|
||||
|
||||
buildDunePackage {
|
||||
pname = "atdgen";
|
||||
inherit (atd) version src;
|
||||
inherit (atd) version useDune2 src;
|
||||
|
||||
buildInputs = [ atd ];
|
||||
|
||||
|
||||
@@ -2,28 +2,26 @@
|
||||
, ocaml, findlib, ocamlbuild, ocaml_oasis
|
||||
, bitstring, camlzip, cmdliner, core_kernel, ezjsonm, fileutils, ocaml_lwt, ocamlgraph, ocurl, re, uri, zarith, piqi, piqi-ocaml, uuidm, llvm, frontc, ounit, ppx_jane, parsexp
|
||||
, utop, libxml2, ncurses
|
||||
, linenoise
|
||||
, ppx_bap
|
||||
, ppx_bitstring
|
||||
, ppx_tools_versioned
|
||||
, yojson
|
||||
, which, makeWrapper, writeText
|
||||
, z3
|
||||
}:
|
||||
|
||||
if !lib.versionAtLeast ocaml.version "4.07"
|
||||
if !lib.versionAtLeast ocaml.version "4.08"
|
||||
then throw "BAP is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
if lib.versionAtLeast core_kernel.version "0.13"
|
||||
then throw "BAP needs core_kernel-0.12 (hence OCaml 4.07)"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml${ocaml.version}-bap-${version}";
|
||||
version = "2.1.0";
|
||||
version = "2.2.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "BinaryAnalysisPlatform";
|
||||
repo = "bap";
|
||||
rev = "v${version}";
|
||||
sha256 = "10fkr6p798ad18j4h9bvp9dg4pmjdpv3hmj7k389i0vhqniwi5xq";
|
||||
sha256 = "0c53sps6ba9n5cjdmapi8ylzlpcc11pksijp9swzlwgxyz5d276f";
|
||||
};
|
||||
|
||||
sigs = fetchurl {
|
||||
@@ -41,12 +39,14 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ which makeWrapper ];
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild ocaml_oasis
|
||||
llvm ppx_bitstring ppx_tools_versioned
|
||||
linenoise
|
||||
ounit
|
||||
ppx_bitstring
|
||||
z3
|
||||
utop libxml2 ncurses ];
|
||||
|
||||
propagatedBuildInputs = [ bitstring camlzip cmdliner ppx_jane core_kernel ezjsonm fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi parsexp
|
||||
piqi-ocaml uuidm frontc ounit ];
|
||||
propagatedBuildInputs = [ bitstring camlzip cmdliner ppx_bap core_kernel ezjsonm fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi parsexp
|
||||
piqi-ocaml uuidm frontc yojson ];
|
||||
|
||||
installPhase = ''
|
||||
export OCAMLPATH=$OCAMLPATH:$OCAMLFIND_DESTDIR;
|
||||
@@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
|
||||
patches = [ ./curses_is_ncurses.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace oasis/elf --replace bitstring.ppx ppx_bitstring
|
||||
substituteInPlace oasis/elf-loader --replace bitstring.ppx ppx_bitstring
|
||||
'';
|
||||
|
||||
configureFlags = [ "--enable-everything ${disableIda}" "--with-llvm-config=${llvm}/bin/llvm-config" ];
|
||||
|
||||
@@ -4,6 +4,8 @@ buildDunePackage rec {
|
||||
pname = "linenoise";
|
||||
version = "1.3.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
{ lib, buildDunePackage
|
||||
, fetchFromGitHub
|
||||
, ppx_assert
|
||||
, ppx_bench
|
||||
, ppx_bin_prot
|
||||
, ppx_compare
|
||||
, ppx_enumerate
|
||||
, ppx_hash
|
||||
, ppx_here
|
||||
, ppx_optcomp
|
||||
, ppx_sexp_conv
|
||||
, ppx_sexp_value
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "ppx_bap";
|
||||
version = "0.14";
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BinaryAnalysisPlatform";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1c6rcdp8bicdiwqc2mb59cl9l2vxlp3y8hmnr9x924fq7acly248";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ppx_optcomp
|
||||
ppx_sexp_value
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ppx_assert
|
||||
ppx_bench
|
||||
ppx_bin_prot
|
||||
ppx_compare
|
||||
ppx_enumerate
|
||||
ppx_hash
|
||||
ppx_here
|
||||
ppx_sexp_conv
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "The set of ppx rewriters for BAP";
|
||||
license = lib.licenses.mit;
|
||||
inherit (src.meta) homepage;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
};
|
||||
}
|
||||
@@ -4,6 +4,8 @@ buildDunePackage rec {
|
||||
pname = "ppx_yojson_conv_lib";
|
||||
version = "0.14.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.02.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
||||
@@ -1,35 +1,27 @@
|
||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, ocaml, findlib, menhir }:
|
||||
{ lib, fetchFromGitHub, buildDunePackage, menhir }:
|
||||
|
||||
if !lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "psmt2-frontend is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.2";
|
||||
name = "ocaml${ocaml.version}-psmt2-frontend-${version}";
|
||||
buildDunePackage rec {
|
||||
version = "0.3.1";
|
||||
pname = "psmt2-frontend";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Coquera";
|
||||
repo = "psmt2-frontend";
|
||||
owner = "ACoquereau";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "097zmbrx4gp2gnrxdmsm9lkkp5450gwi0blpxqy3833m6k5brx3n";
|
||||
sha256 = "038jrfsq09nhnzpjiishg4adk09w3aw1bpczgbj66lqqilkd6gci";
|
||||
};
|
||||
|
||||
prefixKey = "-prefix ";
|
||||
useDune2 = true;
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ ocaml findlib menhir ];
|
||||
minimumOCamlVersion = "4.03";
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
||||
buildInputs = [ menhir ];
|
||||
|
||||
meta = {
|
||||
description = "A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchzip, ocaml, findlib, dune, cppo, easy-format, biniou }:
|
||||
{ lib, stdenv, fetchzip, ocaml, findlib, dune_2, cppo, easy-format, biniou }:
|
||||
let
|
||||
pname = "yojson";
|
||||
param =
|
||||
@@ -6,7 +6,7 @@ let
|
||||
version = "1.7.0";
|
||||
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
|
||||
sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd";
|
||||
nativeBuildInputs = [ dune ];
|
||||
nativeBuildInputs = [ dune_2 ];
|
||||
extra = {
|
||||
installPhase = ''
|
||||
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${pname}
|
||||
|
||||
Reference in New Issue
Block a user