2018-05-16 09:12:50 +01:00
|
|
|
{ stdenv, lib, fetchurl, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vcal-${version}";
|
2018-05-30 08:27:10 +01:00
|
|
|
version = "2.8";
|
2018-05-16 09:12:50 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://waynemorrison.com/software/vcal";
|
2018-05-30 08:27:10 +01:00
|
|
|
sha256 = "0jrm0jzqxb1xjp24hwbzlxsh22gjssay9gj4zszljzdm68r5afvc";
|
2018-05-16 09:12:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
2018-05-16 09:50:48 +01:00
|
|
|
chmod 0755 $out/bin/*
|
2018-05-30 08:27:10 +01:00
|
|
|
pod2man --name=vcal --release=${version} ${src} > $out/share/man/man1/vcal.1
|
2018-05-16 09:12:50 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
# There are no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Parser for VCalendar and ICalendar files, usable from the command line";
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://waynemorrison.com/software/;
|
2018-05-30 08:27:10 +01:00
|
|
|
license = licenses.asl20;
|
2018-05-16 09:12:50 +01:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|