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

30 lines
866 B
Nix
Raw Normal View History

{stdenv, fetchurl, glib, gettext, readline, pkgconfig }:
stdenv.mkDerivation rec {
2015-09-20 16:36:31 +03:00
name = "pal-0.4.3";
src = fetchurl {
url = "mirror://sourceforge/palcal/${name}.tgz";
2015-09-20 16:36:31 +03:00
sha256 = "072mahxvd7lcvrayl32y589w4v3vh7bmlcnhiksjylknpsvhqiyf";
};
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
'';
makeFlags = [ "prefix=$(out)" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib gettext readline ];
hardeningDisable = [ "format" ];
2016-02-12 16:53:04 +03:00
meta = {
homepage = "http://palcal.sourceforge.net/";
description = "Command-line calendar program that can keep track of events";
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}