Merge pull request #257766 from NixOS/backport-256441-to-release-23.05

[Backport release-23.05] ocamlPackages.apron: 0.9.13 → 0.9.14 & enable PPLite support
This commit is contained in:
Vincent Laporte
2023-09-29 13:21:31 +02:00
committed by GitHub
3 changed files with 28 additions and 10 deletions

View File

@@ -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;
};
}

View File

@@ -1,30 +1,29 @@
{ stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl
, gnumake42
, flint, pplite
}:
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 ];
buildInputs = [ gmp mpfr ppl camlidl ];
nativeBuildInputs = [ ocaml findlib perl ];
buildInputs = [ gmp mpfr ppl camlidl flint pplite ];
propagatedBuildInputs = [ mlgmpidl ];
# TODO: Doesn't produce the library correctly if true
strictDeps = false;
outputs = [ "out" "bin" "dev" ];
outputs = [ "out" "dev" ];
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
'';
@@ -32,8 +31,6 @@ stdenv.mkDerivation rec {
postInstall = ''
mkdir -p $dev/lib
mv $out/lib/ocaml $dev/lib/
mkdir -p $bin
mv $out/bin $bin/
'';
meta = {

View File

@@ -11460,6 +11460,8 @@ with pkgs;
ppl = callPackage ../development/libraries/ppl { };
pplite = callPackage ../development/libraries/pplite { };
ppp = callPackage ../tools/networking/ppp { };
pptp = callPackage ../tools/networking/pptp { };