|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }: |
|
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }: |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
|
pname = "catch"; |
|
|
|
@ -14,6 +14,14 @@ stdenv.mkDerivation rec { |
|
|
|
|
nativeBuildInputs = [ cmake ]; |
|
|
|
|
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; |
|
|
|
|
checkTarget = "test"; |
|
|
|
|
|
|
|
|
|