@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchFromGitHub, cmake, python2 }:
1+{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, python3 }:
22
33stdenv.mkDerivation rec {
44 version = "0.6.3";
@@ -11,7 +11,15 @@ stdenv.mkDerivation rec {
1111 sha256 = "0cz3vv7g5snfbsqcf3q8bmd6kv5qp84gj3avwkn4vl00krw13bl7";
1212 };
1313
14− nativeBuildInputs = [ cmake python2 ];
14+ patches = [
15+ (fetchpatch {
16+ name = "python3-for-tests";
17+ url = "https://github.com/docopt/docopt.cpp/commit/b3d909dc952ab102a4ad5a1541a41736f35b92ba.patch";
18+ hash = "sha256-JJR09pbn3QhYaZAIAjs+pe28+g1VfgHUKspWorHzr8o=";
19+ })
20+ ];
21+
22+ nativeBuildInputs = [ cmake python3 ];
1523
1624 cmakeFlags = ["-DWITH_TESTS=ON"];
1725