diff options
author | Armeen Mahdian <mahdianarmeen@gmail.com> | 2022-03-19 17:25:26 -0500 |
---|---|---|
committer | Armeen Mahdian <mahdianarmeen@gmail.com> | 2022-03-19 17:25:26 -0500 |
commit | f06e90837263fcf9bf716b4fa2eda7696540f63e (patch) | |
tree | 588681ee1d562735de122b873cee10b6308409db /pkgs | |
parent | 27a8d53c69d0c0c0e7efbafce61265492e069aac (diff) |
docopt_cpp: patch to support python3 for running tests
https://github.com/docopt/docopt.cpp/pull/145/commits/b3d909dc952ab102a4ad5a1541a41736f35b92ba
Diffstat (limited to 'pkgs')
-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"]; |