From 31f7155f26f52c511aea4a119474e88fb5080a2b Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 21 Sep 2023 07:24:07 +0200 Subject: [PATCH 1/4] =?UTF-8?q?ocamlPackages.apron:=200.9.13=20=E2=86=92?= =?UTF-8?q?=200.9.14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 1caeaa65e1021ea206781c57da631d7d2535bab9) --- pkgs/development/ocaml-modules/apron/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix index fddf128d0d9b..fd8ae197887f 100644 --- a/pkgs/development/ocaml-modules/apron/default.nix +++ b/pkgs/development/ocaml-modules/apron/default.nix @@ -1,26 +1,24 @@ { stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl -, gnumake42 }: stdenv.mkDerivation rec { pname = "ocaml${ocaml.version}-apron"; - version = "0.9.13"; + version = "0.9.14"; src = fetchFromGitHub { owner = "antoinemine"; repo = "apron"; rev = "v${version}"; - sha256 = "14ymjahqdxj26da8wik9d5dzlxn81b3z1iggdl7rn2nn06jy7lvy"; + hash = "sha256-e8bSf0FPB6E3MFHHoSrE0x/6nrUStO+gOKxJ4LDHBi0="; }; - # fails with make 4.4 - nativeBuildInputs = [ ocaml findlib perl gnumake42 ]; + nativeBuildInputs = [ ocaml findlib perl ]; buildInputs = [ gmp mpfr ppl camlidl ]; propagatedBuildInputs = [ mlgmpidl ]; # TODO: Doesn't produce the library correctly if true strictDeps = false; - outputs = [ "out" "bin" "dev" ]; + outputs = [ "out" "dev" ]; configurePhase = '' runHook preConfigure @@ -32,8 +30,6 @@ stdenv.mkDerivation rec { postInstall = '' mkdir -p $dev/lib mv $out/lib/ocaml $dev/lib/ - mkdir -p $bin - mv $out/bin $bin/ ''; meta = { From 18b7c9ce0b76cd43aabbc92cfd2030528abed108 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 21 Sep 2023 07:24:44 +0200 Subject: [PATCH 2/4] pplite: init at 0.11 (cherry picked from commit 245d0418024da4d8bfa2d46d009a33be91fbeac2) --- pkgs/development/libraries/pplite/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/pplite/default.nix diff --git a/pkgs/development/libraries/pplite/default.nix b/pkgs/development/libraries/pplite/default.nix new file mode 100644 index 000000000000..c9c0d1863382 --- /dev/null +++ b/pkgs/development/libraries/pplite/default.nix @@ -0,0 +1,19 @@ +{ stdenv, lib, fetchurl, flint, gmp }: + +stdenv.mkDerivation { + pname = "pplite"; + version = "0.11"; + + src = fetchurl { + url = "https://github.com/ezaffanella/PPLite/raw/main/releases/pplite-0.11.tar.gz"; + hash = "sha256-6IS5zVab8X+gnhK8/qbPH5FODFaG6vIsIG9TTEpfHEI="; + }; + + buildInputs = [ flint gmp ]; + + meta = { + homepage = "https://github.com/ezaffanella/PPLite"; + description = "Convex polyhedra library for Abstract Interpretation"; + license = lib.licenses.gpl3Only; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dbb77444b239..0b01a81b9031 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11458,6 +11458,8 @@ with pkgs; ppl = callPackage ../development/libraries/ppl { }; + pplite = callPackage ../development/libraries/pplite { }; + ppp = callPackage ../tools/networking/ppp { }; pptp = callPackage ../tools/networking/pptp { }; From 0393e94848db7db4a3e85d5767dd5a6d3cac4eef Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 21 Sep 2023 07:24:49 +0200 Subject: [PATCH 3/4] ocamlPackages.apron: enable PPLite support (cherry picked from commit ea7084c266bbb06d4391d46b2e0e206c3accc169) --- pkgs/development/ocaml-modules/apron/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix index fd8ae197887f..edf5ae9a4f33 100644 --- a/pkgs/development/ocaml-modules/apron/default.nix +++ b/pkgs/development/ocaml-modules/apron/default.nix @@ -1,4 +1,5 @@ { stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl +, flint, pplite }: stdenv.mkDerivation rec { @@ -12,7 +13,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ ocaml findlib perl ]; - buildInputs = [ gmp mpfr ppl camlidl ]; + buildInputs = [ gmp mpfr ppl camlidl flint pplite ]; propagatedBuildInputs = [ mlgmpidl ]; # TODO: Doesn't produce the library correctly if true From 3b83895e0470a8b0eed0265c1a059cb0ea9ab4db Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 28 Sep 2023 10:54:32 +0200 Subject: [PATCH 4/4] =?UTF-8?q?ocamlPackages.apron:=20don=E2=80=99t=20stri?= =?UTF-8?q?p=20libraries=20on=20darwin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/antoinemine/apron/issues/93 (cherry picked from commit 3dfaa2a965f3ab82ab1f19c543c2917621c0014c) --- pkgs/development/ocaml-modules/apron/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix index edf5ae9a4f33..5ad98224962e 100644 --- a/pkgs/development/ocaml-modules/apron/default.nix +++ b/pkgs/development/ocaml-modules/apron/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { configurePhase = '' runHook preConfigure - ./configure -prefix $out + ./configure -prefix $out ${lib.optionalString stdenv.isDarwin "-no-strip"} mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs runHook postConfigure '';