10 if tkremind != null then
11 lib.warn "tkremind is deprecated and should be removed; use withGui instead." tkremind
16 tcl.mkTclDerivation rec {
21 url = "https://dianne.skoll.ca/projects/remind/download/remind-${version}.tar.gz";
22 hash = "sha256-XxVjAV3TGDPI8XaFXXSminsMffq8m8ljw68YMIC2lYg=";
25 propagatedBuildInputs = lib.optionals withGui [
30 postPatch = lib.optionalString withGui ''
31 # NOTA BENE: The path to rem2pdf is replaced in tkremind for future use
32 # as rem2pdf is currently not build since it requires the JSON::MaybeXS,
33 # Pango and Cairo Perl modules.
34 substituteInPlace scripts/tkremind \
35 --replace-fail "exec wish" "exec ${lib.getExe' tk "wish"}" \
36 --replace-fail 'set Remind "remind"' 'set Remind "$out/bin/remind"' \
37 --replace-fail 'set Rem2PS "rem2ps"' 'set Rem2PS "$out/bin/rem2ps"' \
38 --replace-fail 'set Rem2PDF "rem2pdf"' 'set Rem2PDF "$out/bin/rem2pdf"'
41 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin (toString [
42 # On Darwin setenv and unsetenv are defined in stdlib.h from libSystem
48 homepage = "https://dianne.skoll.ca/projects/remind/";
49 description = "Sophisticated calendar and alarm program for the console";
50 license = licenses.gpl2Only;
51 maintainers = with maintainers; [
55 mainProgram = "remind";
56 platforms = platforms.unix;