nixpkgs/pkgs/tools/misc/remind/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

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