nixpkgs/pkgs/applications/misc/vcal/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

38 lines
949 B
Nix

{ stdenv, lib, fetchurl, perl }:
stdenv.mkDerivation rec {
name = "vcal-${version}";
version = "2.8";
src = fetchurl {
url = "https://waynemorrison.com/software/vcal";
sha256 = "0jrm0jzqxb1xjp24hwbzlxsh22gjssay9gj4zszljzdm68r5afvc";
};
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
chmod 0755 $out/bin/*
pod2man --name=vcal --release=${version} ${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 = https://waynemorrison.com/software/;
license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ];
};
}