catch: backport support for Apple Silicon
This commit is contained in:
parent
92d53249f6
commit
7f216a4424
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "catch";
|
pname = "catch";
|
||||||
|
@ -14,6 +14,14 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
cmakeFlags = [ "-DUSE_CPP14=ON" ];
|
cmakeFlags = [ "-DUSE_CPP14=ON" ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://github.com/catchorg/Catch2/pull/2151
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/catchorg/Catch2/commit/bb6d08323f23a39eb65dd86671e68f4f5d3f2d6c.patch";
|
||||||
|
sha256 = "1vhbzx84nrhhf9zlbl6h5zmg3r5w5v833ihlswsysb9wp2i4isc5";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue