@@ -0,0 +1,36 @@
1+{ stdenv, lib, fetchurl, perl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "vcal-${version}";
5+ version = "2.7";
6+
7+ src = fetchurl {
8+ url = "http://waynemorrison.com/software/vcal";
9+ sha256 = "0fknrlad7vb84ngh242xjaq96vkids85ksnxaflk2cr9wcwxfmix";
10+ };
11+
12+ nativeBuildInputs = [ perl ]; # for pod2man
13+
14+ unpackPhase = ":";
15+ dontBuild = true;
16+ installPhase = ''
17+ runHook preInstall
18+
19+ mkdir -p $out/{bin,share/man/man1}
20+ substitute ${src} $out/bin/vcal \
21+ --replace /usr/bin/perl ${perl}/bin/perl
22+ pod2man -n vcal ${src} > $out/share/man/man1/vcal.1
23+
24+ runHook postInstall
25+ '';
26+
27+ # There are no tests
28+ doCheck = false;
29+
30+ meta = with lib; {
31+ description = "Parser for VCalendar and ICalendar files, usable from the command line";
32+ homepage = http://waynemorrison.com/software/;
33+ license = licenses.unfree; # "These are made publicly available for personal use."
34+ maintainers = with maintainers; [ peterhoeg ];
35+ };
36+}