From 181fbde59c309c06dab5c9890a6e612a05a75d93 Mon Sep 17 00:00:00 2001 From: Olivier Le Doeuff Date: Mon, 29 Apr 2024 10:53:50 +0200 Subject: [PATCH] howard-hinnant-date: fix installed cmake version The report installed version report to cmake was `3.0.0`, however the real version is `3.0.1`. This was causing cmake's `find_package(date 3.0.1)` to fail. ```console cat /nix/store/cx2jc7aay0if0f3s0nc1i5raahd3p4hk-howard-hinnant-date-3.0.1-dev/lib/cmake/date/dateConfigVersion.cmake set(PACKAGE_VERSION "3.0.1") ``` Before this patch, the file contained `set(PACKAGE_VERSION "3.0.0")`. This patch is already merged upstream in the `master` branch. --- pkgs/development/libraries/howard-hinnant-date/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/howard-hinnant-date/default.nix b/pkgs/development/libraries/howard-hinnant-date/default.nix index 4f3e74f5d8a8..f7af4975de56 100644 --- a/pkgs/development/libraries/howard-hinnant-date/default.nix +++ b/pkgs/development/libraries/howard-hinnant-date/default.nix @@ -33,6 +33,13 @@ stdenv.mkDerivation rec { src = ./make-zoneinfo-available.diff; inherit tzdata; }) + # The reported version to cmake's find_package() is 3.0.0, but the actual + # version is 3.0.1. This patch fixes that. + (fetchpatch { + name = "fix-cmake-version.patch"; + url = "https://github.com/HowardHinnant/date/commit/2e19c006e2218447ee31f864191859517603f59f.patch"; + hash = "sha256-SRAWrwv64ap3Qh3RlhwqgS0L2YsrjqVSgw6iH3KlWvk="; + }) ]; # Tweaks to fix undefined variable substitutions