summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-09 16:24:05 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-01-09 17:19:34 +0100
commitb3864081f6c2941bbb11d10659fe061d6ea90b84 (patch)
treef4b196831bb781d191d7d76c9eec37c2e0d60281
parent7632115599ed29601e6171ff70f8d9a42beae83f (diff)
cubicle: 1.1.2 -> 1.2.0
(cherry picked from commit 140052d2df941f359b01a630961edd4eea9ada16)
-rw-r--r--pkgs/applications/science/logic/cubicle/default.nix34
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 29 insertions, 9 deletions
diff --git a/pkgs/applications/science/logic/cubicle/default.nix b/pkgs/applications/science/logic/cubicle/default.nix
index aa3fba635ffc..4719a69c0128 100644
--- a/pkgs/applications/science/logic/cubicle/default.nix
+++ b/pkgs/applications/science/logic/cubicle/default.nix
@@ -1,18 +1,40 @@
-{ lib, stdenv, fetchurl, ocamlPackages }:
+{ lib
+, stdenv
+, fetchurl
+, autoreconfHook
+, which
+, ocamlPackages
+}:
stdenv.mkDerivation rec {
pname = "cubicle";
- version = "1.1.2";
+ version = "1.2.0";
src = fetchurl {
- url = "http://cubicle.lri.fr/cubicle-${version}.tar.gz";
- sha256 = "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q";
+ url = "https://github.com/cubicle-model-checker/cubicle/archive/refs/tags/${version}.tar.gz";
+ hash = "sha256-/EtbXpyXqRm0jGcMfGLAEwdr92061edjFys1V7/w6/Y=";
};
+ # https://github.com/cubicle-model-checker/cubicle/issues/1
postPatch = ''
- substituteInPlace Makefile.in --replace "\\n" ""
+ substituteInPlace Makefile.in \
+ --replace "@OCAMLC@" "ocamlfind ocamlc -package num" \
+ --replace "@OCAMLOPT@" "ocamlfind ocamlopt -package num"
'';
- buildInputs = with ocamlPackages; [ ocaml findlib functory ];
+ strictDeps = true;
+
+ nativeBuildInputs = [
+ autoreconfHook
+ which
+ ] ++ (with ocamlPackages; [
+ findlib
+ ocaml
+ ]);
+
+ buildInputs = with ocamlPackages; [
+ functory
+ num
+ ];
meta = with lib; {
description = "An open source model checker for verifying safety properties of array-based systems";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9d029c0c2c89..1f0ede992bfb 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -35803,9 +35803,7 @@ with pkgs;
crypto-org-wallet = callPackage ../applications/blockchains/crypto-org-wallet { };
- cubicle = callPackage ../applications/science/logic/cubicle {
- ocamlPackages = ocaml-ng.ocamlPackages_4_05;
- };
+ cubicle = callPackage ../applications/science/logic/cubicle { };
cvc3 = callPackage ../applications/science/logic/cvc3 {
gmp = lib.overrideDerivation gmp (_: { dontDisableStatic = true; });