leo2: 1.6.2 → 1.7.0

Fix build with recent C++ compilers

Use a more recent OCaml (4.05)

+18 -7
+17 -6
pkgs/applications/science/logic/leo2/default.nix
··· 1 - { lib, stdenv, fetchurl, makeWrapper, eprover, ocaml, perl, zlib }: 2 3 stdenv.mkDerivation rec { 4 pname = "leo2"; 5 - version = "1.6.2"; 6 7 src = fetchurl { 8 url = "https://page.mi.fu-berlin.de/cbenzmueller/leo/leo2_v${version}.tgz"; 9 - sha256 = "1wjpmizb181iygnd18lx7p77fwaci2clgzs5ix5j51cc8f3pazmv"; 10 }; 11 12 nativeBuildInputs = [ makeWrapper ]; 13 - buildInputs = [ eprover ocaml perl zlib ]; 14 15 - sourceRoot = "leo2/src"; 16 17 - preConfigure = "patchShebangs configure"; 18 19 buildFlags = [ "opt" ]; 20
··· 1 + { lib, stdenv, fetchurl, fetchpatch, makeWrapper, eprover, ocaml, camlp4, perl, zlib }: 2 3 stdenv.mkDerivation rec { 4 pname = "leo2"; 5 + version = "1.7.0"; 6 7 src = fetchurl { 8 url = "https://page.mi.fu-berlin.de/cbenzmueller/leo/leo2_v${version}.tgz"; 9 + sha256 = "sha256:1b2q7vsz6s9ighypsigqjm1mzjiq3xgnz5id5ssb4rh9zm190r82"; 10 }; 11 12 nativeBuildInputs = [ makeWrapper ]; 13 + buildInputs = [ eprover ocaml camlp4 perl zlib ]; 14 15 + patches = [ (fetchpatch { 16 + url = "https://github.com/niklasso/minisat/commit/7eb6015313561a2586032574788fcb133eeaa19f.patch"; 17 + stripLen = 1; 18 + extraPrefix = "lib/"; 19 + sha256 = "sha256:01ln7hi6nvvkqkhn9hciqizizz5qspvqffgksvgmzn9x7kdd9pnh"; 20 + }) 21 + ]; 22 23 + preConfigure = '' 24 + cd src 25 + patchShebangs configure 26 + substituteInPlace Makefile.pre \ 27 + --replace '+camlp4' "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4" 28 + ''; 29 30 buildFlags = [ "opt" ]; 31
+1 -1
pkgs/top-level/all-packages.nix
··· 31153 mathlibtools = with python3Packages; toPythonApplication mathlibtools; 31154 31155 leo2 = callPackage ../applications/science/logic/leo2 31156 - { ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml; }; 31157 31158 leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {}; 31159
··· 31153 mathlibtools = with python3Packages; toPythonApplication mathlibtools; 31154 31155 leo2 = callPackage ../applications/science/logic/leo2 31156 + { inherit (ocaml-ng.ocamlPackages_4_05) ocaml camlp4; }; 31157 31158 leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {}; 31159