gnu: l2md: Fix build on 32-bit systems.

* gnu/packages/mail.scm (l2md)[source]: Add snippet to gate macOS build
fix to only apply when building for Apple devices.

Change-Id: Id303a89ec78ce160cfb6ebed232a841c8283e812
This commit is contained in:
Efraim Flashner 2024-02-27 08:22:54 +02:00
parent 9ee57722ce
commit 5bf912330b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -8,7 +8,7 @@
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
;;; Copyright © 2015, 2016, 2018 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015-2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2015-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Christine Lemmer-Webber <cwebber@dustycloud.org>
;;; Copyright © 2016 Al McElrath <hello@yrns.org>
;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Leo Famulari <leo@famulari.name>
@ -4217,7 +4217,15 @@ (define-public l2md
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1hfbngwdavdhw5ghnadmi0djg2yrr0wrkv15jdd9wcqh9h6mxy8z"))))
(base32 "1hfbngwdavdhw5ghnadmi0djg2yrr0wrkv15jdd9wcqh9h6mxy8z"))
(snippet
#~(begin (use-modules (guix build utils))
;; Don't try to redefine loff_t.
(substitute* "utils.c"
(("typedef off_t loff_t;")
(string-append "#ifdef __APPLE__\n"
"typedef off_t loff_t;\n"
"#endif\n")))))))
(build-system gnu-build-system)
(inputs
(list libgit2))