summary refs log tree commit diff
path: root/pkgs/tools/misc/pal
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-08-09 21:13:36 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-08-09 21:13:36 +0000
commitac387916b82741ed2e056a41c8bcf2d4b4f73e12 (patch)
treefc081ea39d60fe1715ec4f2930f5dbd38863697d /pkgs/tools/misc/pal
parent1b59ae0b838666fe1f59ba1f291f5147f3ee64b6 (diff)
downloadnixpkgs-ac387916b82741ed2e056a41c8bcf2d4b4f73e12.tar
nixpkgs-ac387916b82741ed2e056a41c8bcf2d4b4f73e12.tar.gz
nixpkgs-ac387916b82741ed2e056a41c8bcf2d4b4f73e12.tar.bz2
nixpkgs-ac387916b82741ed2e056a41c8bcf2d4b4f73e12.tar.lz
nixpkgs-ac387916b82741ed2e056a41c8bcf2d4b4f73e12.tar.xz
nixpkgs-ac387916b82741ed2e056a41c8bcf2d4b4f73e12.tar.zst
nixpkgs-ac387916b82741ed2e056a41c8bcf2d4b4f73e12.zip
Adding the calendar program 'pal'
svn path=/nixpkgs/trunk/; revision=23070
Diffstat (limited to 'pkgs/tools/misc/pal')
-rw-r--r--pkgs/tools/misc/pal/default.nix28
1 files changed, 28 insertions, 0 deletions
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;
+  };
+}