diff --git a/pkgs/applications/science/logic/cubicle/default.nix b/pkgs/applications/science/logic/cubicle/default.nix index 67f70e7165d4..c9382c5d0f1a 100644 --- a/pkgs/applications/science/logic/cubicle/default.nix +++ b/pkgs/applications/science/logic/cubicle/default.nix @@ -14,13 +14,6 @@ stdenv.mkDerivation rec { 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; nativeBuildInputs = [ @@ -36,6 +29,12 @@ stdenv.mkDerivation rec { num ]; + # https://github.com/cubicle-model-checker/cubicle/issues/1 + env = { + OCAMLC = "ocamlfind ocamlc -package num"; + OCAMLOPT = "ocamlfind ocamlopt -package num"; + }; + meta = with lib; { description = "An open source model checker for verifying safety properties of array-based systems"; homepage = "https://cubicle.lri.fr/";