diff options
author | Rick van Schijndel <Mindavi@users.noreply.github.com> | 2022-05-04 20:52:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 20:52:06 +0200 |
commit | 833b0ae1b7e7cbfe70713badd3094c553e1470d5 (patch) | |
tree | bb2fd19d76067e92a9308aaad9b18e4b36d16ee9 /pkgs/development/libraries | |
parent | 7e4329608cbf52abf3a3e13b529fbe324ae5cb30 (diff) | |
parent | f06e90837263fcf9bf716b4fa2eda7696540f63e (diff) |
Merge pull request #164905 from armeenm/docopt_cpp-python3
docopt_cpp: patch to support python3 for running tests
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/docopt_cpp/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/libraries/docopt_cpp/default.nix b/pkgs/development/libraries/docopt_cpp/default.nix index 3de84b684e525..4fae1db9ba3c3 100644 --- a/pkgs/development/libraries/docopt_cpp/default.nix +++ b/pkgs/development/libraries/docopt_cpp/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, cmake, python2 }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, python3 }: stdenv.mkDerivation rec { version = "0.6.3"; @@ -11,7 +11,15 @@ stdenv.mkDerivation rec { sha256 = "0cz3vv7g5snfbsqcf3q8bmd6kv5qp84gj3avwkn4vl00krw13bl7"; }; - nativeBuildInputs = [ cmake python2 ]; + patches = [ + (fetchpatch { + name = "python3-for-tests"; + url = "https://github.com/docopt/docopt.cpp/commit/b3d909dc952ab102a4ad5a1541a41736f35b92ba.patch"; + hash = "sha256-JJR09pbn3QhYaZAIAjs+pe28+g1VfgHUKspWorHzr8o="; + }) + ]; + + nativeBuildInputs = [ cmake python3 ]; cmakeFlags = ["-DWITH_TESTS=ON"]; |