diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/logic/lean/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/science/logic/lean/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/applications/science/logic/lean/default.nix b/nixpkgs/pkgs/applications/science/logic/lean/default.nix index d96bf665f2eb..f0bd2ba777db 100644 --- a/nixpkgs/pkgs/applications/science/logic/lean/default.nix +++ b/nixpkgs/pkgs/applications/science/logic/lean/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, cmake, gmp, coreutils }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, gmp, coreutils }: stdenv.mkDerivation rec { pname = "lean"; @@ -15,6 +15,15 @@ stdenv.mkDerivation rec { hash = "sha256-Vcsph4dTNLafeaTtVwJS8tWoWCgcP6pxF0ssZDE/YfM="; }; + patches = [ + # Fix gcc-13 build failure + (fetchpatch { + name = "gcc-13.patch"; + url = "https://github.com/leanprover-community/lean/commit/21d264a66d53b0a910178ae7d9529cb5886a39b6.patch"; + hash = "sha256-hBm2QNFS1jdoR6LUQHLReKxMKv7kbkrkrTGJ43YnvfA="; + }) + ]; + nativeBuildInputs = [ cmake ]; buildInputs = [ gmp ]; |