2021-01-17 03:51:22 +00:00
|
|
|
{lib, stdenv, fetchurl, glib, gettext, readline, pkg-config }:
|
2010-08-09 22:13:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-02 10:38:45 +01:00
|
|
|
pname = "pal";
|
|
|
|
version = "0.4.3";
|
2010-08-09 22:13:36 +01:00
|
|
|
src = fetchurl {
|
2021-08-02 10:38:45 +01:00
|
|
|
url = "mirror://sourceforge/palcal/pal-${version}.tgz";
|
2015-09-20 14:36:31 +01:00
|
|
|
sha256 = "072mahxvd7lcvrayl32y589w4v3vh7bmlcnhiksjylknpsvhqiyf";
|
2010-08-09 22:13:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's/-o root//' -e 's,ESTDIR}/etc,ESTDIR}'$out/etc, src/Makefile
|
|
|
|
sed -i -e 's,/etc/pal\.conf,'$out/etc/pal.conf, src/input.c
|
|
|
|
'';
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2010-08-09 22:13:36 +01:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ glib gettext readline ];
|
2010-08-09 22:13:36 +01:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 13:53:04 +00:00
|
|
|
|
2010-08-09 22:13:36 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://palcal.sourceforge.net/";
|
2010-08-09 22:13:36 +01:00
|
|
|
description = "Command-line calendar program that can keep track of events";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux;
|
2010-08-09 22:13:36 +01:00
|
|
|
};
|
|
|
|
}
|