remind: fix darwin build

This commit is contained in:
Alexis Hildebrandt 2024-06-22 23:28:21 +02:00
parent 438fbfa8b9
commit 4f991469fb

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, fetchurl
, tk
, tcllib
@ -28,6 +29,15 @@ tcl.mkTclDerivation rec {
--replace-fail 'set Rem2PDF "rem2pdf"' "set Rem2PDF \"$out/bin/rem2pdf\""
'';
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin (toString [
# Disable clang link time optimization until the following issue is resolved:
# https://github.com/NixOS/nixpkgs/issues/19098
"-fno-lto"
# On Darwin setenv and unsetenv are defined in stdlib.h from libSystem
"-DHAVE_SETENV"
"-DHAVE_UNSETENV"
]);
meta = with lib; {
homepage = "https://dianne.skoll.ca/projects/remind/";
description = "Sophisticated calendar and alarm program for the console";