1 {lib, stdenv, fetchurl, glib, gettext, readline, pkg-config }:
3 stdenv.mkDerivation rec {
7 url = "mirror://sourceforge/palcal/pal-${version}.tgz";
8 sha256 = "072mahxvd7lcvrayl32y589w4v3vh7bmlcnhiksjylknpsvhqiyf";
12 sed -i -e 's/-o root//' -e 's,ESTDIR}/etc,ESTDIR}'$out/etc, src/Makefile
13 sed -i -e 's,/etc/pal\.conf,'$out/etc/pal.conf, src/input.c
16 makeFlags = [ "prefix=$(out)" ];
18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ glib gettext readline ];
21 hardeningDisable = [ "format" ];
24 homepage = "http://palcal.sourceforge.net/";
25 description = "Command-line calendar program that can keep track of events";
26 license = lib.licenses.gpl2;
27 maintainers = with lib.maintainers; [viric];
28 platforms = with lib.platforms; linux;