Skip to content

Commit 016be1d

Browse files
committed
lean3: fix gcc-13 build failure)
Without the change the build fails on `master` as https://hydra.nixos.org/build/247665202: /build/source/src/shell/lean_js.h:11:32: error: 'uintptr_t' was not declared in this scope 11 | int emscripten_process_request(uintptr_t msg); | ^~~~~~~~~
1 parent 442d407 commit 016be1d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkgs/applications/science/logic/lean/default.nix

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, fetchFromGitHub, cmake, gmp, coreutils }:
1+
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, gmp, coreutils }:
22

33
stdenv.mkDerivation rec {
44
pname = "lean";
@@ -15,6 +15,15 @@ stdenv.mkDerivation rec {
1515
hash = "sha256-Vcsph4dTNLafeaTtVwJS8tWoWCgcP6pxF0ssZDE/YfM=";
1616
};
1717

18+
patches = [
19+
# Fix gcc-13 build failure
20+
(fetchpatch {
21+
name = "gcc-13.patch";
22+
url = "https://github.com/leanprover-community/lean/commit/21d264a66d53b0a910178ae7d9529cb5886a39b6.patch";
23+
hash = "sha256-hBm2QNFS1jdoR6LUQHLReKxMKv7kbkrkrTGJ43YnvfA=";
24+
})
25+
];
26+
1827
nativeBuildInputs = [ cmake ];
1928
buildInputs = [ gmp ];
2029

0 commit comments

Comments
 (0)