2019-08-21 16:25:24 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, icu
|
|
|
|
, libxml2
|
|
|
|
, ninja
|
|
|
|
, perl
|
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, tzdata
|
|
|
|
, vala
|
|
|
|
}:
|
2009-02-18 21:57:36 +01:00
|
|
|
|
2011-11-07 17:48:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libical";
|
2019-08-21 16:25:24 +02:00
|
|
|
version = "3.0.5";
|
2018-06-29 12:49:33 +02:00
|
|
|
|
2019-08-21 16:25:24 +02:00
|
|
|
outputs = [ "out" "dev" ]; # "devdoc" ];
|
2015-03-27 01:29:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libical";
|
|
|
|
repo = "libical";
|
|
|
|
rev = "v${version}";
|
2019-08-21 16:25:24 +02:00
|
|
|
sha256 = "03kjc4s1svmzkmzkr0irgczq37aslhj4bxnvjqav0jwa2zrynhra";
|
2009-02-18 21:57:36 +01:00
|
|
|
};
|
2015-03-27 01:29:57 +01:00
|
|
|
|
2018-06-29 12:49:33 +02:00
|
|
|
nativeBuildInputs = [
|
2019-08-21 16:25:24 +02:00
|
|
|
cmake
|
|
|
|
gobject-introspection
|
|
|
|
ninja
|
|
|
|
perl
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
# Docs building fails:
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/67204
|
|
|
|
# previously with https://github.com/NixOS/nixpkgs/pull/61657#issuecomment-495579489
|
|
|
|
# gtk-doc docbook_xsl docbook_xml_dtd_43 # for docs
|
|
|
|
];
|
|
|
|
installCheckInputs = [
|
|
|
|
# running libical-glib tests
|
|
|
|
(python3.withPackages (pkgs: with pkgs; [
|
|
|
|
pygobject3
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libxml2
|
|
|
|
icu
|
2018-06-29 12:49:33 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DGOBJECT_INTROSPECTION=True"
|
2019-08-21 16:25:24 +02:00
|
|
|
"-DENABLE_GTK_DOC=False"
|
2018-06-29 12:49:33 +02:00
|
|
|
"-DICAL_GLIB_VAPI=True"
|
|
|
|
];
|
2012-08-08 11:10:36 +02:00
|
|
|
|
2017-09-18 03:25:11 +02:00
|
|
|
patches = [
|
2019-08-21 16:25:24 +02:00
|
|
|
# Will appear in 3.1.0
|
2018-06-29 12:49:33 +02:00
|
|
|
# https://github.com/libical/libical/issues/350
|
2017-09-18 03:25:11 +02:00
|
|
|
./respect-env-tzdir.patch
|
|
|
|
];
|
2015-03-27 01:29:57 +01:00
|
|
|
|
2018-06-29 12:49:33 +02:00
|
|
|
# Using install check so we do not have to manually set
|
|
|
|
# LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
|
|
|
|
doInstallCheck = true;
|
2018-11-24 18:39:13 +01:00
|
|
|
enableParallelChecking = false;
|
2018-06-29 12:49:33 +02:00
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
|
|
|
|
export TZDIR=${tzdata}/share/zoneinfo
|
|
|
|
ctest --output-on-failure
|
|
|
|
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
2018-04-25 05:20:18 +02:00
|
|
|
|
2015-03-27 01:29:57 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/libical/libical;
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "An Open Source implementation of the iCalendar protocols";
|
2018-06-29 12:49:33 +02:00
|
|
|
license = licenses.mpl20;
|
2015-03-27 01:29:57 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2009-02-18 21:57:36 +01:00
|
|
|
}
|