2016-10-18 16:28:38 +01:00
|
|
|
{stdenv, fetchurl, tk, tcllib, makeWrapper
|
|
|
|
, tkremind ? true
|
|
|
|
} :
|
2009-02-25 22:44:08 +00:00
|
|
|
|
2016-10-18 16:28:38 +01:00
|
|
|
assert tkremind -> tk != null;
|
|
|
|
assert tkremind -> tcllib != null;
|
|
|
|
assert tkremind -> makeWrapper != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-02 09:56:35 +01:00
|
|
|
name = "remind-3.1.15";
|
2009-02-25 22:44:08 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = https://www.roaringpenguin.com/files/download/remind-03.01.15.tar.gz;
|
2015-09-02 09:56:35 +01:00
|
|
|
sha256 = "1hcfcxz5fjzl7606prlb7dgls5kr8z3wb51h48s6qm8ang0b9nla";
|
2009-02-25 22:44:08 +00:00
|
|
|
};
|
|
|
|
|
2016-10-18 16:28:38 +01:00
|
|
|
tclLibraries = if tkremind then [ tcllib tk ] else [];
|
|
|
|
tclLibPaths = stdenv.lib.concatStringsSep " "
|
|
|
|
(map (p: "${p}/lib/${p.libPrefix}") tclLibraries);
|
|
|
|
|
|
|
|
buildInputs = if tkremind then [ makeWrapper ] else [];
|
|
|
|
propagatedBuildInputs = tclLibraries;
|
|
|
|
|
|
|
|
postPatch = if tkremind then ''
|
|
|
|
substituteInPlace scripts/tkremind --replace "exec wish" "exec ${tk}/bin/wish"
|
|
|
|
'' else "";
|
|
|
|
|
|
|
|
postInstall = if tkremind then ''
|
|
|
|
wrapProgram $out/bin/tkremind --set TCLLIBPATH "${tclLibPaths}"
|
|
|
|
'' else "";
|
|
|
|
|
2009-02-25 22:44:08 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.roaringpenguin.com/products/remind;
|
|
|
|
description = "Sophisticated calendar and alarm program for the console";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin kovirobi];
|
2010-04-21 08:00:49 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-02-25 22:44:08 +00:00
|
|
|
};
|
|
|
|
}
|