2021-04-13 08:27:23 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, tk
|
|
|
|
, tcllib
|
2021-05-01 00:05:22 +01:00
|
|
|
, tcl
|
2016-10-18 16:28:38 +01:00
|
|
|
, tkremind ? true
|
2021-04-13 08:27:23 +01:00
|
|
|
}:
|
2009-02-25 22:44:08 +00:00
|
|
|
|
2018-11-29 05:30:11 +00:00
|
|
|
let
|
2021-05-01 00:05:22 +01:00
|
|
|
inherit (lib) optional optionals optionalString;
|
|
|
|
tclLibraries = optionals tkremind [ tcllib tk ];
|
2019-09-10 00:52:34 +01:00
|
|
|
tkremindPatch = optionalString tkremind ''
|
|
|
|
substituteInPlace scripts/tkremind --replace "exec wish" "exec ${tk}/bin/wish"
|
|
|
|
'';
|
2021-04-13 08:27:23 +01:00
|
|
|
in
|
2021-05-01 00:05:22 +01:00
|
|
|
tcl.mkTclDerivation rec {
|
2020-07-21 14:38:18 +01:00
|
|
|
pname = "remind";
|
2022-08-02 01:20:48 +01:00
|
|
|
version = "04.00.01";
|
2020-07-21 14:38:18 +01:00
|
|
|
|
2018-11-29 05:30:11 +00:00
|
|
|
src = fetchurl {
|
2020-07-21 14:38:18 +01:00
|
|
|
url = "https://dianne.skoll.ca/projects/remind/download/remind-${version}.tar.gz";
|
2022-08-02 01:20:48 +01:00
|
|
|
sha256 = "sha256-NhXS7WpFbKuRFiAWDSy+g9PoYVQcpugLppQEF/S5WeI=";
|
2018-11-29 05:30:11 +00:00
|
|
|
};
|
2016-10-18 16:28:38 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = tclLibraries;
|
|
|
|
|
2019-09-10 00:52:34 +01: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 16:28:38 +01:00
|
|
|
|
2021-04-13 08:27:23 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01: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 08:27:23 +01:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ raskin kovirobi ];
|
|
|
|
platforms = platforms.unix;
|
2009-02-25 22:44:08 +00:00
|
|
|
};
|
|
|
|
}
|