2016-10-18 17:28:38 +02:00
|
|
|
{stdenv, fetchurl, tk, tcllib, makeWrapper
|
|
|
|
, tkremind ? true
|
|
|
|
} :
|
2009-02-25 23:44:08 +01:00
|
|
|
|
2016-10-18 17:28:38 +02:00
|
|
|
assert tkremind -> tk != null;
|
|
|
|
assert tkremind -> tcllib != null;
|
|
|
|
assert tkremind -> makeWrapper != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-02 10:56:35 +02:00
|
|
|
name = "remind-3.1.15";
|
2009-02-25 23:44:08 +01:00
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = https://www.roaringpenguin.com/files/download/remind-03.01.15.tar.gz;
|
2015-09-02 10:56:35 +02:00
|
|
|
sha256 = "1hcfcxz5fjzl7606prlb7dgls5kr8z3wb51h48s6qm8ang0b9nla";
|
2009-02-25 23:44:08 +01:00
|
|
|
};
|
|
|
|
|
2016-10-18 17:28:38 +02: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 23:44:08 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.roaringpenguin.com/products/remind;
|
|
|
|
description = "Sophisticated calendar and alarm program for the console";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-12-19 17:44:00 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric raskin kovirobi];
|
2010-04-21 09:00:49 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-02-25 23:44:08 +01:00
|
|
|
};
|
|
|
|
}
|