~ruther/guix-local

9efddd7dae3d595cc89ad96259a5d1ccd5c18650 — Sharlatan Hellseher 10 months ago e13678a
gnu: orthanc-mysql: Fix searching of mysql.h.

Fixes guix/guix#1386

* gnu/packages/medical.scm (orthanc-mysql): [phases]
  {fix-mysql-include-path}: Swap to SEARCH-INPUT-DIRECTORY, see
  guix/guix#1385.

Change-Id: I879001041733c03bd1e5dd8659c0e3c67fc8b6ee
1 files changed, 2 insertions(+), 3 deletions(-)

M gnu/packages/medical.scm
M gnu/packages/medical.scm => gnu/packages/medical.scm +2 -3
@@ 329,13 329,12 @@ Medicine} server instead of SQLite.")
                ;; file.
                (chdir "MySQL")))
            (add-after 'unpack 'fix-mysql-include-path
              (lambda _
              (lambda* (#:key inputs #:allow-other-keys)
                ;; Help it find mysql.h, either from mysql in this package or
                ;; from mariadb:dev in orthanc-mariadb.
                (substitute* "Resources/CMake/MariaDBConfiguration.cmake"
                  (("/usr/include/mysql")
                   (string-append #$(this-package-input "mysql")
                                  "/include/mysql")))))
                   (search-input-directory inputs "include/mysql")))))
            ;; There is no test target; simply run the binary.
            (replace 'check
              (lambda* (#:key tests? #:allow-other-keys)