From ac387916b82741ed2e056a41c8bcf2d4b4f73e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 9 Aug 2010 21:13:36 +0000 Subject: [PATCH] Adding the calendar program 'pal' svn path=/nixpkgs/trunk/; revision=23070 --- pkgs/tools/misc/pal/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/misc/pal/default.nix diff --git a/pkgs/tools/misc/pal/default.nix b/pkgs/tools/misc/pal/default.nix new file mode 100644 index 00000000000..fbc6d607650 --- /dev/null +++ b/pkgs/tools/misc/pal/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db0a0416777..b038db428be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -945,6 +945,10 @@ let p7zip = callPackage ../tools/archivers/p7zip { }; + pal = callPackage ../tools/misc/pal { + inherit (gtkLibs) glib; + }; + panomatic = callPackage ../tools/graphics/panomatic { }; par2cmdline = callPackage ../tools/networking/par2cmdline { };