Skip to content

Commit f9d39fb

Browse files
authored
Merge pull request #287604 from trofi/lean3-mark-broken
lean3: fix gcc-13 build failure
2 parents c715931 + 016be1d commit f9d39fb

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)