diff --git a/pkgs/development/libraries/cassandra-cpp-driver/default.nix b/pkgs/development/libraries/cassandra-cpp-driver/default.nix index 59b52ecfa25c..66e868fe9692 100644 --- a/pkgs/development/libraries/cassandra-cpp-driver/default.nix +++ b/pkgs/development/libraries/cassandra-cpp-driver/default.nix @@ -1,5 +1,6 @@ { fetchFromGitHub, + fetchpatch, lib, stdenv, cmake, @@ -20,6 +21,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-GuvmKHJknudyn7ahrn/8+kKUA4NW5UjCfkYoX3aTE+Q="; }; + patches = [ + # https://github.com/apache/cassandra-cpp-driver/pull/580 + (fetchpatch { + name = "fix-cmake-version.patch"; + url = "https://github.com/apache/cassandra-cpp-driver/commit/a4061051bcdfa0a67117b546897552c38493d545.patch?full_index=1"; + hash = "sha256-hQhm2SYLd8uPC85/iOH3sEM2KvoIGwV+9NGIJFnZJhc="; + }) + ]; + nativeBuildInputs = [ cmake pkg-config