Adding the calendar program 'pal'

svn path=/nixpkgs/trunk/; revision=23070
This commit is contained in:
Lluís Batlle i Rossell 2010-08-09 21:13:36 +00:00
parent 1b59ae0b83
commit ac387916b8
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{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 = "BSD";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}

View File

@ -945,6 +945,10 @@ let
p7zip = callPackage ../tools/archivers/p7zip { }; p7zip = callPackage ../tools/archivers/p7zip { };
pal = callPackage ../tools/misc/pal {
inherit (gtkLibs) glib;
};
panomatic = callPackage ../tools/graphics/panomatic { }; panomatic = callPackage ../tools/graphics/panomatic { };
par2cmdline = callPackage ../tools/networking/par2cmdline { }; par2cmdline = callPackage ../tools/networking/par2cmdline { };