2021-04-13 07:27:23 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, tk
|
|
|
|
, tcllib
|
2021-04-30 23:05:22 +00:00
|
|
|
, tcl
|
2016-10-18 15:28:38 +00:00
|
|
|
, tkremind ? true
|
2021-04-13 07:27:23 +00:00
|
|
|
}:
|
2009-02-25 22:44:08 +00:00
|
|
|
|
2018-11-29 05:30:11 +00:00
|
|
|
let
|
2021-04-30 23:05:22 +00:00
|
|
|
inherit (lib) optional optionals optionalString;
|
|
|
|
tclLibraries = optionals tkremind [ tcllib tk ];
|
2019-09-09 23:52:34 +00:00
|
|
|
tkremindPatch = optionalString tkremind ''
|
|
|
|
substituteInPlace scripts/tkremind --replace "exec wish" "exec ${tk}/bin/wish"
|
|
|
|
'';
|
2021-04-13 07:27:23 +00:00
|
|
|
in
|
2021-04-30 23:05:22 +00:00
|
|
|
tcl.mkTclDerivation rec {
|
2020-07-21 13:38:18 +00:00
|
|
|
pname = "remind";
|
2023-04-20 05:21:39 +00:00
|
|
|
version = "04.02.05";
|
2020-07-21 13:38:18 +00:00
|
|
|
|
2018-11-29 05:30:11 +00:00
|
|
|
src = fetchurl {
|
2020-07-21 13:38:18 +00:00
|
|
|
url = "https://dianne.skoll.ca/projects/remind/download/remind-${version}.tar.gz";
|
2023-04-20 05:21:39 +00:00
|
|
|
sha256 = "sha256-nOEFhVwZvgUod+j/5ifllFgTS7I8+hOAeMSDlRH4+Ag=";
|
2018-11-29 05:30:11 +00:00
|
|
|
};
|
2016-10-18 15:28:38 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = tclLibraries;
|
|
|
|
|
2019-09-09 23:52:34 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./configure \
|
|
|
|
--replace "sleep 1" "true"
|
|
|
|
substituteInPlace ./src/init.c \
|
|
|
|
--replace "rkrphgvba(0);" "" \
|
|
|
|
--replace "rkrphgvba(1);" ""
|
|
|
|
${tkremindPatch}
|
2018-11-29 05:30:11 +00:00
|
|
|
'';
|
2016-10-18 15:28:38 +00:00
|
|
|
|
2021-04-13 07:27:23 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://dianne.skoll.ca/projects/remind/";
|
2009-02-25 22:44:08 +00:00
|
|
|
description = "Sophisticated calendar and alarm program for the console";
|
2021-04-13 07:27:23 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ raskin kovirobi ];
|
|
|
|
platforms = platforms.unix;
|
2009-02-25 22:44:08 +00:00
|
|
|
};
|
|
|
|
}
|