Merge pull request #219600 from wegank/cubicle-env

cubicle: set env instead of postPatch
This commit is contained in:
Anderson Torres 2023-03-04 21:33:19 -03:00 committed by GitHub
commit 1bce75bc44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,13 +14,6 @@ stdenv.mkDerivation rec {
hash = "sha256-/EtbXpyXqRm0jGcMfGLAEwdr92061edjFys1V7/w6/Y="; hash = "sha256-/EtbXpyXqRm0jGcMfGLAEwdr92061edjFys1V7/w6/Y=";
}; };
# https://github.com/cubicle-model-checker/cubicle/issues/1
postPatch = ''
substituteInPlace Makefile.in \
--replace "@OCAMLC@" "ocamlfind ocamlc -package num" \
--replace "@OCAMLOPT@" "ocamlfind ocamlopt -package num"
'';
strictDeps = true; strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
@ -36,6 +29,12 @@ stdenv.mkDerivation rec {
num num
]; ];
# https://github.com/cubicle-model-checker/cubicle/issues/1
env = {
OCAMLC = "ocamlfind ocamlc -package num";
OCAMLOPT = "ocamlfind ocamlopt -package num";
};
meta = with lib; { meta = with lib; {
description = "An open source model checker for verifying safety properties of array-based systems"; description = "An open source model checker for verifying safety properties of array-based systems";
homepage = "https://cubicle.lri.fr/"; homepage = "https://cubicle.lri.fr/";