1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/tools/misc/pal/default.nix
2014-07-28 11:31:14 +02:00

29 lines
832 B
Nix

{stdenv, fetchurl, ncurses, glib, gettext, readline, pkgconfig }:
stdenv.mkDerivation rec {
name = "pal-0.4.2";
src = fetchurl {
url = "mirror://sourceforge/palcal/${name}.tgz";
sha256 = "1601nsspxscm7bp9g9bkia0ij0mx2lpskl2fqhs5r0smp92121nx";
};
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
'';
preBuild = ''
export makeFlags="prefix=$out"
'';
buildInputs = [ glib gettext readline pkgconfig ];
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;
};
}