vcal: init at 2.7

This commit is contained in:
Peter Hoeg 2018-05-16 16:12:50 +08:00
parent 16677a6ead
commit 84ae5f1ee3
2 changed files with 38 additions and 0 deletions

@ -0,0 +1,36 @@
{ stdenv, lib, fetchurl, perl }:
stdenv.mkDerivation rec {
name = "vcal-${version}";
version = "2.7";
src = fetchurl {
url = "http://waynemorrison.com/software/vcal";
sha256 = "0fknrlad7vb84ngh242xjaq96vkids85ksnxaflk2cr9wcwxfmix";
};
nativeBuildInputs = [ perl ]; # for pod2man
unpackPhase = ":";
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/man/man1}
substitute ${src} $out/bin/vcal \
--replace /usr/bin/perl ${perl}/bin/perl
pod2man -n vcal ${src} > $out/share/man/man1/vcal.1
runHook postInstall
'';
# There are no tests
doCheck = false;
meta = with lib; {
description = "Parser for VCalendar and ICalendar files, usable from the command line";
homepage = http://waynemorrison.com/software/;
license = licenses.unfree; # "These are made publicly available for personal use."
maintainers = with maintainers; [ peterhoeg ];
};
}

@ -15982,6 +15982,8 @@ with pkgs;
gcalcli = callPackage ../applications/misc/gcalcli { };
vcal = callPackage ../applications/misc/vcal { };
gcolor2 = callPackage ../applications/graphics/gcolor2 { };
gcolor3 = callPackage ../applications/graphics/gcolor3 { };