nixpkgs/pkgs/tools/misc/pal/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

28 lines
842 B
Nix

{stdenv, fetchurl, ncurses, glib, gettext, readline, pkgconfig }:
stdenv.mkDerivation rec {
name = "pal-0.4.3";
src = fetchurl {
url = "mirror://sourceforge/palcal/${name}.tgz";
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)";
buildInputs = [ glib gettext readline pkgconfig ];
hardeningDisable = [ "format" ];
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;
};
}