@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, cmake}:
1+{stdenv, fetchurl, fetchpatch, cmake}:
22
33let
44 version = "3.3.4";
@@ -11,6 +11,15 @@ stdenv.mkDerivation {
1111 name = "eigen-${version}.tar.gz";
1212 sha256 = "1q85bgd6hnsgn0kq73wa4jwh4qdwklfg73pgqrz4zmxvzbqyi1j2";
1313 };
14+
15+ patches = [
16+ # Remove for > 3.3.4
17+ # Upstream commit from 6 Apr 2018 "Fix cmake scripts with no fortran compiler"
18+ (fetchpatch {
19+ url = "https://bitbucket.org/eigen/eigen/commits/ba14974d054ae9ae4ba88e5e58012fa6c2729c32/raw";
20+ sha256 = "0fskiy9sbzvp693fcyv3pfq8kxxx3d3mgmaqvjbl5bpfjivij8l1";
21+ })
22+ ];
1423
1524 nativeBuildInputs = [ cmake ];
1625