Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
973 B
Nix
44 lines
973 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
perl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vcal";
|
|
version = "2.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://waynemorrison.com/software/vcal";
|
|
sha256 = "0jrm0jzqxb1xjp24hwbzlxsh22gjssay9gj4zszljzdm68r5afvc";
|
|
};
|
|
|
|
nativeBuildInputs = [ perl ]; # for pod2man
|
|
|
|
dontUnpack = true;
|
|
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 ];
|
|
mainProgram = "vcal";
|
|
};
|
|
}
|