Unverified Commit ed303339 authored by jthulhu's avatar jthulhu
Browse files

lean4: 4.13.0 -> 4.14.0

Release notes: https://github.com/leanprover/lean4/releases/tag/v4.14.0
Moved `cadical` from nativeBuildInputs to buildInputs, because it doesn't build otherwise.
Enforced failure of build if the substitution in CMakeLists fails.
parent d3fc0b62
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -13,18 +13,18 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "lean4";
  version = "4.13.0";
  version = "4.14.0";

  src = fetchFromGitHub {
    owner = "leanprover";
    repo = "lean4";
    rev = "v${finalAttrs.version}";
    hash = "sha256-UemA3H0YxdrXQ/6uG6YFphj/6ab2jb0zbRkDZaMSXok=";
    hash = "sha256-xVQCbZLVSI+UiFoimw7TK1P5DQca412ss/9z3LzaxCQ=";
  };

  postPatch = ''
    substituteInPlace src/CMakeLists.txt \
      --replace 'set(GIT_SHA1 "")' 'set(GIT_SHA1 "${finalAttrs.src.rev}")'
      --replace-fail 'set(GIT_SHA1 "")' 'set(GIT_SHA1 "${finalAttrs.src.rev}")'

    # Remove tests that fails in sandbox.
    # It expects `sourceRoot` to be a git repository.
@@ -37,12 +37,12 @@ stdenv.mkDerivation (finalAttrs: {

  nativeBuildInputs = [
    cmake
    cadical
  ];

  buildInputs = [
    gmp
    libuv
    cadical
  ];

  nativeCheckInputs = [